Comments (1)
@fninsiima Yes, you can use tts.blob()
, <a>
element with download
attribute, and href
attribute set to 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))
from speechsynthesisrecorder.
Related Issues (14)
- Firefox Uncaught (in promise) NavigatorUserMediaError {name: "TrackStartError", message: "", constraintName: ""}
- Saving audio w/o using speaker and microphone HOT 2
- Not working on latest versions of chrome 71 HOT 1
- This is again recording from microphone, not from audiooutput device HOT 4
- audioBuffer() not working in chrome HOT 3
- Uncaught TypeError: Failed to set the 'volume' property on 'SpeechSynthesisUtterance': The provided float value is non-finite. HOT 2
- Chromium does not support capture of monitor devices by default HOT 4
- 'audiooutput' does not mean system audio output
- Stop disable MediaStream from navigator.mediaDevices.getUserMedia() when playback or recording completes
- Microsoft "Natural" voices are not captured HOT 8
- Why do we need to use navigator.mediaDevices.getUser() and MediaRecorder to get audio output of window.speechSynthesis.speak()?
- Issue with recorded media at Firefox
- Do not add elements to the DOM HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from speechsynthesisrecorder.