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

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-feature-automate-reference-docs-generation.mintlify.app/llms.txt

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

weaveDocs
weave / weaveAudio

Function: weaveAudio()

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

パラメータ

options: WeaveAudioInput このメディアタイプのオプション
  • data: The raw audio data as a Buffer
  • audioType: (Optional) The type of audio file, currently only ‘wav’ is supported

戻り値

WeaveAudio

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

定義場所

media.ts:62