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

Prime audio output on speech synthesis #34

Closed
compulim opened this issue Jul 30, 2019 · 0 comments · Fixed by #36
Closed

Prime audio output on speech synthesis #34

compulim opened this issue Jul 30, 2019 · 0 comments · Fixed by #36
Labels
text-to-speech Related to speech synthesis

Comments

@compulim
Copy link
Owner

compulim commented Jul 30, 2019

Safari will block audio playback if the first audio clip in the AudioContext instance is not rooted from user gesture.

We need to allow the user to pass an AudioContext instance, which is primed with an empty audio clip.

ffmpeg -f lavfi -i anullsrc=r=44100:cl=mono -t 0.01 -q:a 9 -acodec libmp3lame out.mp3
data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU3LjU2LjEwMQAAAAAAAAAAAAAA//tAwAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAACAAABhgC7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7//////////////////////////////////////////////////////////////////8AAAAATGF2YzU3LjY0AAAAAAAAAAAAAAAAJAUHAAAAAAAAAYYoRBqpAAAAAAD/+xDEAAPAAAGkAAAAIAAANIAAAARMQU1FMy45OS41VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7EMQpg8AAAaQAAAAgAAA0gAAABFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
@compulim compulim added the text-to-speech Related to speech synthesis label Jul 30, 2019
@compulim compulim pinned this issue Jul 31, 2019
@compulim compulim unpinned this issue Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
text-to-speech Related to speech synthesis
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant