メインコンテンツへスキップ

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

weaveAudio

weaveAudio(options): WeaveAudio WeaveAudio オブジェクトを新規作成します

パラメーター

タイプ説明
optionsWeaveAudioInputこのメディアタイプのオプションです - data: Buffer 形式の生のオーディオデータ - audioType: (任意) オーディオファイルの種類。現在サポートされているのは ‘wav’ のみです

戻り値

WeaveAudio
const audioBuffer = fs.readFileSync('path/to/audio.wav');
const weaveAudio = weaveAudio({ data: audioBuffer });

定義元

media.ts:62