weaveAudio
▸ weaveAudio(options): WeaveAudio
Create a new WeaveAudio object
Parameters
Returns
WeaveAudio
Example
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 reference
options): WeaveAudio
Create a new WeaveAudio object
| Name | Type | Description |
|---|---|---|
options | WeaveAudioInput | The options for this media type - data: The raw audio data as a Buffer - audioType: (Optional) The type of audio file, currently only ‘wav’ is supported |
WeaveAudio
Example
const audioBuffer = fs.readFileSync('path/to/audio.wav');
const weaveAudio = weaveAudio({ data: audioBuffer });
Was this page helpful?