speech-synthesis

Record HTML5 SpeechSynthesisUtterance generated speech to file

老子叫甜甜 提交于 2019-11-30 12:56:05
问题 I am able to generate speech from text using Chrome's Speech Synthesis API (in Version 33.0.1750.112 beta-m) in the following manner var transcript = document.getElementById("speechTxt").value; var msg = new SpeechSynthesisUtterance(transcript); speechSynthesis.speak(msg); Now I want to save this speech in a file (maybe using WebAudio API). Is this possible through some function call? I have looked at the methods in Speech Synthesis API and there is nothing to save this speech data. Using

C++ MSAPI 5: SetNotifyCallbackFunction not working

此生再无相见时 提交于 2019-11-29 14:39:53
So I've tried the MSAPI 5.4 TTS with event example . Now I create an cmd prompt app that utilize the SetNotifyCallbackFunction but the function that I've pass is not being called. I'm not an expert in C++ so I am having difficulty in solving this one, can anyone point me in the right direction or at least give me a good example of SetNotifyCallbackFunction? Here is a simplified version of my code: typedef void __stdcall SPNOTIFYCALLBACK(WPARAM wParam, LPARAM lParam); void __stdcall outsideeventFunction(WPARAM, LPARAM); void __stdcall outsideeventFunction(WPARAM wParam, LPARAM lParam){ std:

Google's Text-To-Speech API from Android app

柔情痞子 提交于 2019-11-29 12:59:47
I want to use Google's Text-To-Speech API in an Android app but I only could find the way to do it from web (Chrome). This is my first attempt to play "Hello world" from the app. playTTS is the onClick and it is been executed, but no sound is played. Is there any JS/Java library I need to import? Is it possible to generate an audio file from it? @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); myBrowser = new WebView(this); if (savedInstanceState == null) { getSupportFragmentManager().beginTransaction()

Adding a new Language to SpeechSynthesizer

家住魔仙堡 提交于 2019-11-29 11:14:06
So I'am trying to add a new language, spesifically norwegian, to SpeechSynthesizer, but it doesn't seem to get installed. Found this: Add another voice into .NET Speech (But here the problem is that Czech isn't supported) I have installed the norwegian pack from here: http://www.microsoft.com/en-us/download/details.aspx?id=27224 In my code I use this to check if it is installed: foreach (var voice in speaker.GetInstalledVoices()) { Console.WriteLine(voice.VoiceInfo.Description); } But it only outputs: Microsoft Zira Desktop - English (United States) Have checked the text-to-Speech tool were

Can't Chrome's speechSynthesis work offline?

牧云@^-^@ 提交于 2019-11-29 10:42:59
I was playing with Chrome's speechSynthesis msg = new SpeechSynthesisUtterance("some text"); msg.lang = "fr-FR" ; window.speechSynthesis.speak(msg); when I discovered this strange issue : it can't speak anymore if your device is offline. I searched the web but did not find any explanation. Can't this work offline ? (If you know the reason why it needs to be online, please tell me it too in the comments.) Speech synthesis voices are either local on the device or come from remote speech synthesizer services. If the voice is a remote service, the browser will only be able to use it if it is

TTS to Stream with SpeechAudioFormatInfo using SpeechSynthesizer

我是研究僧i 提交于 2019-11-29 09:27:40
问题 I am using System.Speech.Synthesis.SpeechSynthesizer to convert text to speech. And due to Microsoft's anemic documentation (see my link, there's no remarks or code examples) I'm having trouble making heads or tails of the difference between two methods: SetOutputToAudioStream and SetOutputToWaveStream. Here's what I have deduced: SetOutputToAudioStream takes a stream and a SpeechAudioFormatInfo instance that defines the format of the wave file (samples per second, bits per second, audio

Setting language for TTS programmatically?

北慕城南 提交于 2019-11-29 02:17:27
I have written a small Android Demo to use TTS in different languages. I have a layout with two buttons, Spanish and English. Pressing the button triggers an utterance in the language selected. However, I can't change the language (setLanguage (Locale locale)). I can do it by hand, using the phone settings and changing the TTS language to US, UK, Italian, German, etc, but my code doesn't seem to work. Could you tell me where the problem is? Thank you!! package com.ignacio.SpeakAPP; import android.app.Activity; import android.os.Bundle; import android.speech.tts.TextToSpeech; import android

Google's Text-To-Speech API from Android app

折月煮酒 提交于 2019-11-28 06:40:12
问题 I want to use Google's Text-To-Speech API in an Android app but I only could find the way to do it from web (Chrome). This is my first attempt to play "Hello world" from the app. playTTS is the onClick and it is been executed, but no sound is played. Is there any JS/Java library I need to import? Is it possible to generate an audio file from it? @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); myBrowser

Adding a new Language to SpeechSynthesizer

你离开我真会死。 提交于 2019-11-28 04:55:06
问题 So I'am trying to add a new language, spesifically norwegian, to SpeechSynthesizer, but it doesn't seem to get installed. Found this: Add another voice into .NET Speech (But here the problem is that Czech isn't supported) I have installed the norwegian pack from here: http://www.microsoft.com/en-us/download/details.aspx?id=27224 In my code I use this to check if it is installed: foreach (var voice in speaker.GetInstalledVoices()) { Console.WriteLine(voice.VoiceInfo.Description); } But it only

Is it possible to select the word that is being read while using the SpeechSynthesisUtterance API?

白昼怎懂夜的黑 提交于 2019-11-28 04:20:01
问题 Is it possible to select the word that is being read while using the SpeechSynthesisUtterance API? Is there an event I can use to get the current spoken word and cursor position? Here is what I have so far: var msg = new SpeechSynthesisUtterance(); var voices = window.speechSynthesis.getVoices(); msg.voice = voices[10]; // Note: some voices don't support altering params msg.voiceURI = 'native'; msg.volume = 1; // 0 to 1 msg.rate = 1; // 0.1 to 10 msg.pitch = 2; //0 to 2 msg.text = 'Hello