text-to-speech

SSML using Chrome TTS

与世无争的帅哥 提交于 2019-12-05 01:06:46
I'm trying to give a little more clarity to TTS sentences by indicating emphasis, etc. I'm using the Chrome TTS API , which indicates that it accepts SSML-formatted documents in addition to raw text. After many attempts, and a reading a few comments on the web, it doesn't look like this is actually supported, or possibly that this is up to individual voices for implementation. Does anyone know: Has SSML been abandoned under Chrome? If not, is there any indication whether they expect to support it via native voice, or they're hoping that someone else will implement? Do any Chrome voices

ImportError: No Module named 'driver' in pyttsx

有些话、适合烂在心里 提交于 2019-12-05 00:29:42
I am trying to run a voice program in Python 3.5.2 and with pyttsx library. But I've faced up with lots of problems. First one is about engine. When I run the command import pyttsx , compiler gave me the error like below: ImportError: No module named 'engine' Then I've found this answer . But it didn't work either. Eventually, I now have another - similar - error like below: D:\Users\orcuny\Desktop\AVA>python ava.py Traceback (most recent call last): File "D:\Users\orcuny\AppData\Local\Continuum\Anaconda3\lib\site-packages\pyttsx\__init__.py", line 37, in init eng = _activeEngines[driverName]

Question SpeechSynthesizer.SetOutputToAudioStream audio format problem

假装没事ソ 提交于 2019-12-05 00:10:06
问题 I'm currently working on an application which requires transmission of speech encoded to a specific audio format. System.Speech.AudioFormat.SpeechAudioFormatInfo synthFormat = new System.Speech.AudioFormat.SpeechAudioFormatInfo(System.Speech.AudioFormat.EncodingFormat.Pcm, 8000, 16, 1, 16000, 2, null); This states that the audio is in PCM format, 8000 samples per second, 16 bits per sample, mono, 16000 average bytes per second, block alignment of 2. When I attempt to execute the following

Text to speech in HTML5 ,JavaScript which runs on all browser

老子叫甜甜 提交于 2019-12-04 23:52:08
问题 I have created one sample example for Text to speech in HTML5 using JavaScript which runs on only Chrome, but when I am trying to run it on other browser i.e. IE, Mozilla, Safari nothing will happed. What should I do to run my Text To speech demo code on all browser. <code> <!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"> </script> <script> $(document).ready

System.Speech.Synthesis hangs with high CPU on 2012 R2

☆樱花仙子☆ 提交于 2019-12-04 22:51:54
I have an asp.net MVC application that has a controller action that takes a string as input and sends a response wav file of the synthesized speech. Here is a simplified example: public async Task<ActionResult> Speak(string text) { Task<FileContentResult> task = Task.Run(() => { using (var synth = new System.Speech.Synthesis.SpeechSynthesizer()) using (var stream = new MemoryStream()) { synth.SetOutputToWaveStream(stream); synth.Speak(text); var bytes = stream.GetBuffer(); return File(bytes, "audio/x-wav"); } }); return await task; } The application (and this action method in particular) is

Why am I getting a System.Security.Permissions.SecurityPermission error in my .NET Application?

萝らか妹 提交于 2019-12-04 21:39:31
I am trying to develop a text-to-speech editor in .NET 3.5 using C#. I encountered the following exception: System.Security.Permissions.SecurityPermission . How to handle it? The system is saying that there has been an attempt to do something that is not allowed according to the current policy. More information is needed to give good advice here: 1) What is the full text of the exception message? There are a dozen or so situations that can cause a SecurityPermission so this is important. Specifically, there is a flag field that indicates the exact nature of the security violation. 2) What is

C# SAPI 5.4 Languages?

扶醉桌前 提交于 2019-12-04 20:21:12
I've made a Simple Program That Recognizes Speech Using SAPI 5.4 , i wanted to ask if i can add some more languages to the TTS and The ASR , Thanks Here is the code i made you anybody needs to take a look at it using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using SpeechLib; using System.Globalization; using System.Speech.Recognition; namespace WindowsFormsApplication1 { public partial class Form1 : Form { // Speech Recognition Object SpSharedRecoContext

How to link festival TTS libraries in a C++ programme using g++

此生再无相见时 提交于 2019-12-04 18:31:57
i am using Festival c++ Api but in the manual provided at http://www.cstr.ed.ac.uk/projects/festival/manual/festival_28.html#SEC132 saying to link festival/src/lib/libFestival.a etc. so please tell me hw to link them with my c++ programme The simplest way to link a static library from g++ is simply to name the library on the command line, using the complete path: g++ mycode.cpp -o myprog /myinstall/festival/src/lib/libFestival.a where /myinstall is wherever you installed the libraries. You can also specify the path and the library with the -L and -l flags: g++ mycode.cpp -o myprog -L/myinstall

How do you get/set media volume (spotify) and TTS in Android?

只愿长相守 提交于 2019-12-04 18:16:22
Decrease the stream volume and Increase TTS volume at the same time I had this Android application that talk with TTS every time and uses streaming music (spotify). So, I need to decrease the volume and increase the TTS I use this code but this decrease the tts as well. AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); audioManager.setStreamVolume(AudioManager.STREAM_MUSIC,[int value],[if desired a flag]); Any way to decrease only spotify like stream music . in Java/android. What you want to do is know as 'audio ducking' Here's some sample code: /** * Our {

How to create custom text-to-speech engine

拥有回忆 提交于 2019-12-04 17:53:43
问题 This question was migrated from Super User because it can be answered on Stack Overflow. Migrated 8 years ago . As I know, TTS needs TTS engine to speak one language. In Android emulator 2.2, Pico TTS engine is default. It has only some popular languages. I can see some engines on Market which must be purchased to install. My question: is there any way to create a custom engine which support other languages?(by programming or using software) (I don't know if I should post this question in