We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Just wondering if there is an option of saving the recording to file system
The text was updated successfully, but these errors were encountered:
@fninsiima Yes, you can use tts.blob(), <a> element with download attribute, and href attribute set to Blob URL
tts.blob()
<a>
download
href
Blob URL
let ttsRecorder = new SpeechSynthesisRecorder({ text:"The revolution will not be televised", utteranceOptions:{ voice: "english-us espeak", lang: "en-US", pitch: .75, rate: 1, volume: 1 } }); ttsRecorder.start() .then(tts => tts.blob()) .then(({tts, data}) => { const a = document.createElement("a"); const blobURL = URL.createObjectURL(data); a.download = "synthesizedAudio"; a.href = blobURL; document.body.appendChild(a); a.click(); }) .catch(err => console.log(err))
Sorry, something went wrong.
No branches or pull requests
Just wondering if there is an option of saving the recording to file system
The text was updated successfully, but these errors were encountered: