weaveAudio
options): WeaveAudio
WeaveAudio オブジェクトを新規作成します
パラメーター
| 名 | タイプ | 説明 |
|---|---|---|
options | WeaveAudioInput | このメディアタイプのオプションです - data: Buffer 形式の生のオーディオデータ - audioType: (任意) オーディオファイルの種類。現在サポートされているのは ‘wav’ のみです |
戻り値
WeaveAudio
例
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Help us improve these docs. Take our quick survey.
TypeScript SDK リファレンス
options): WeaveAudio
WeaveAudio オブジェクトを新規作成します
| 名 | タイプ | 説明 |
|---|---|---|
options | WeaveAudioInput | このメディアタイプのオプションです - data: Buffer 形式の生のオーディオデータ - audioType: (任意) オーディオファイルの種類。現在サポートされているのは ‘wav’ のみです |
WeaveAudio
例
const audioBuffer = fs.readFileSync('path/to/audio.wav');
const weaveAudio = weaveAudio({ data: audioBuffer });