Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert mp4 to webm for streaming audio #125

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

edisonmoy
Copy link

Problem

typescript-streaming-sandbox Prosody and Vocal bursts features displays the following error on Safari:

Streaming payload configured with model type 'prosody', which is not supported for the detected file type 'text'.

Chrome defaults to audio/webm. Safari defaults to audio/mp4

Screenshot 2024-12-17 at 10 21 26

Solution

Convert audio/mp4 to audio/webm format in AudioRecorder before returning the audio blob.

Note: It is necessary to import and initialize ffmpeg-wasm in the class to prevent the server execution of ffmpeg-wasm

Error: ffmpeg.wasm does not support nodejs

Testing

Manual tests of Prosody, Vocal bursts on MacOS Chrome and MacOS Safari.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant