SOLVED

Pausing speech

%3CLINGO-SUB%20id%3D%22lingo-sub-2120493%22%20slang%3D%22en-US%22%3EPausing%20speech%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2120493%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20my%20name%20is%20Dylan%20and%20I'm%20developing%20a%20TTS%20prototype%20without%20creating%20any%20.wav%20file.%26nbsp%3B%3C%2FP%3E%3CP%3EJust%20like%20your%20website%20demo%2C%20I%20currently%20have%20a%20start%2Fstop%20button.%20However%2C%20it%20would%20be%20interesting%20to%20implement%20a%20pause%2Fcontinue%20system.%20Is%20there%20any%20way%20to%20do%20it%20with%20the%20current%20version%20of%20TTS%2C%20without%20having%20to%20create%20a%20playable%20file%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20this%20session.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2120493%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAMA%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETTS%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2120634%22%20slang%3D%22en-US%22%3ERe%3A%20Pausing%20speech%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2120634%22%20slang%3D%22en-US%22%3EOk%2C%20that's%20a%20good%20point.%20Thanks%20a%20lot.%3CBR%20%2F%3EAnd%20yes%2C%20the%20idea%20is%20to%20keep%20the%20start%2Fstop%20button.%20However%2C%20I%20would%20like%20to%20add%20a%20new%20button%20that%20starts%20the%20speech%20from%20the%20beginning%20so%20that%20the%20Stop%20button%20could%20be%20replaced%20by%20a%20STOP%2FContinue%20button%2C%20instead%20of%20a%20Start%2FStop.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2120622%22%20slang%3D%22en-US%22%3ERe%3A%20Pausing%20speech%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2120622%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F962465%22%20target%3D%22_blank%22%3E%40dlopes10%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDepending%20on%20how%20long%20the%20audio%20is%2C%20you%20could%20do%20a%20in-memory%20stream%2C%20but%20you%20would%20still%20need%20the%20start%2Fstop%20button.%20%3CBR%20%2F%3ECheck%20out%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcognitive-services%2Fspeech-service%2Fget-started-text-to-speech%3Ftabs%3Dscript%252Cwindowsinstall%26amp%3Bpivots%3Dprogramming-language-javascript%23get-result-as-an-in-memory-stream%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EIn-memory%20stream%20section%3C%2FA%3E%20of%20the%20Getting%20Started%20guide.%20(You%20can%20switch%20languages%20at%20the%20top%20of%20the%20page)%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2120617%22%20slang%3D%22en-US%22%3ERe%3A%20Pausing%20speech%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2120617%22%20slang%3D%22en-US%22%3EUp%3C%2FLINGO-BODY%3E
New Contributor

Hello, my name is Dylan and I'm developing a TTS prototype without creating any .wav file. 

Just like your website demo, I currently have a start/stop button. However, it would be interesting to implement a pause/continue system. Is there any way to do it with the current version of TTS, without having to create a playable file?

 

Thanks for this session.

3 Replies
Up
best response confirmed by dlopes10 (New Contributor)
Solution

@dlopes10 

 

Depending on how long the audio is, you could do a in-memory stream, but you would still need the start/stop button.
Check out the In-memory stream section of the Getting Started guide. (You can switch languages at the top of the page)

Ok, that's a good point. Thanks a lot.
And yes, the idea is to keep the start/stop button. However, I would like to add a new button that starts the speech from the beginning so that the Stop button could be replaced by a STOP/Continue button, instead of a Start/Stop.