SpeechSynthesisRecorder | Get audio output from window.speechSynthesis.speak call | Speech library
kandi X-RAY | SpeechSynthesisRecorder Summary
kandi X-RAY | SpeechSynthesisRecorder Summary
Use navigator.mediaDevices.getUserMedia() and MediaRecorder to get audio output from window.speechSynthesis.speak() call as ArrayBuffer, AudioBuffer, Blob, MediaSource, ReadableStream, or other object or data types, see MediaStream, ArrayBuffer, Blob audio result from speak() for recording?.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SpeechSynthesisRecorder
SpeechSynthesisRecorder Key Features
SpeechSynthesisRecorder Examples and Code Snippets
Community Discussions
Trending Discussions on SpeechSynthesisRecorder
QUESTION
JavaScript's built-in text-to-speech function is SpeechSynthesis.speak()
. I'm using discord.js and I want to convert Speech Synthesis to a node.js Readable Stream so I can play it back as a broadcast to a voice channel.
I did find this Github Repo, however it didn't work for me and I had a hard time broadcasting it (Also, while I'm not 100% certain, I'm assuming it records the tts, which isn't great when dealing with large strings of text).
Here's the main errors I got while using the aforementioned code:
...ANSWER
Answered 2020-Aug-17 at 16:50the Web Speech API (SpeechSynthesis.speak()) uses the underlying OS or Browser synthesis implementation, and doesn't go through the Web Audio API. That Github repo actually uses your system's Microphone to record the speech output. That's not a good idea except for as a hack. You'll need to use something else to generate the content - perhaps Say.js which is cross browser and works directly in node.js?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SpeechSynthesisRecorder
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page