speech-synthesis

FreeTTS - java.lang.ClassNotFoundException: javax.speech.EngineCentral

点点圈 提交于 2019-12-08 07:39:21
问题 I have a problem, and I know this might similiar to the ones that are online, but I have followed every instruction I have found online and I am still getting this problem. Basically I am making a GUI with a Virtual Keyboard, and whatever the user types, I want the user to be able to click a button and I want a speech synthesis to convert the text-to-speech. I have looked online and found that the easiest and most common open software used was freeTSS. I have installed freeTSS and followed

Speech Synthesis on iOS weird errors on loading, and no concurrency

∥☆過路亽.° 提交于 2019-12-08 00:01:52
问题 I'm using the speech synth in AVFoundation, creating an instance of a voice like this: import AVFoundation class CanSpeak { let voices = AVSpeechSynthesisVoice.speechVoices() let voiceSynth = AVSpeechSynthesizer() var voiceToUse: AVSpeechSynthesisVoice? init(){ for voice in voices { if voice.name == "Arthur" { voiceToUse = voice } } } func sayThis(_ phrase: String){ let utterance = AVSpeechUtterance(string: phrase) utterance.voice = voiceToUse utterance.rate = 0.5 voiceSynth.speak(utterance)

How do I add a voice / language to speechSynthesis?

本小妞迷上赌 提交于 2019-12-07 12:50:11
问题 When I run speechSynthesis.getVoices() in Chrome, I get a list of possible voices. The list changes depending on the computer and version of Chrome. Is there any way I can extend support and add more voices? I feel like this could be done by asking a user to download a voice file for their chosen language. Do such files exist? Edit: This needs to work for both Windows and Mac computers. It also needs to be simple, so no scripts or anything that would require extensive technical knowledge. I'm

JavaScript speechSynthesis.speak() without user activation is no longer allowed since M71

落爺英雄遲暮 提交于 2019-12-07 02:05:52
问题 I used speechSynthesis API in this way: speechSynthesis.speak(new SpeechSynthesisUtterance("hello world")); But right now I get error after update Google Chrome: [Deprecation] speechSynthesis.speak() without user activation is no longer allowed since M71, around December 2018. See https://www.chromestatus.com/feature/5687444770914304 for more details speechSynthesisMessage @ application-2c16c437c2795ae01c0a8852e5f8da58dad99d6e17814a31f1eea19922c5ebd2.js:147 How I can fix this issue and ask

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

耗尽温柔 提交于 2019-12-06 17:11:03
问题 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,

FreeTTS - java.lang.ClassNotFoundException: javax.speech.EngineCentral

喜你入骨 提交于 2019-12-06 16:08:09
I have a problem, and I know this might similiar to the ones that are online, but I have followed every instruction I have found online and I am still getting this problem. Basically I am making a GUI with a Virtual Keyboard, and whatever the user types, I want the user to be able to click a button and I want a speech synthesis to convert the text-to-speech. I have looked online and found that the easiest and most common open software used was freeTSS. I have installed freeTSS and followed the instructions. I have then taken the following code from the online community: import java.util.*;

Speech Synthesis on iOS weird errors on loading, and no concurrency

為{幸葍}努か 提交于 2019-12-06 14:05:01
I'm using the speech synth in AVFoundation, creating an instance of a voice like this: import AVFoundation class CanSpeak { let voices = AVSpeechSynthesisVoice.speechVoices() let voiceSynth = AVSpeechSynthesizer() var voiceToUse: AVSpeechSynthesisVoice? init(){ for voice in voices { if voice.name == "Arthur" { voiceToUse = voice } } } func sayThis(_ phrase: String){ let utterance = AVSpeechUtterance(string: phrase) utterance.voice = voiceToUse utterance.rate = 0.5 voiceSynth.speak(utterance) } } I have two problems. There's no concurrency. Calling this function multiple times results in a

What are the different between “Windows.Media.SpeechSynthesis” and “System.Speech.Synthesis”?

你说的曾经没有我的故事 提交于 2019-12-06 04:41:42
I'm trying t o determined which of the two APIs have more features to do text-to-speech in a pro application developed in C#. OS is not an issues here, just how of the two namespaces offer more features, quality voices and stability. Have any body master both tech and could tell me about the different in those two namespaces? Is one of them a super-set of the another in terms of features? EDIT: Behind of those two namespaces is the same speech synthesis engine ? My web app will do all the text-to-speech stuff at server side. Windows.Media.SpeechSynthesis is part of the Windows Runtime and

HTML5 Web Speech API not working locally

半腔热情 提交于 2019-12-06 03:58:18
问题 I am trying to make this code work and don't know why is it not working locally. I tried the same on CodePen.io and it works. <html> <head> <title>Voice API</title> </head> <body> <button onClick="func()">Click Me</button> <script> function func() { alert('Hello'); var recognition = new webkitSpeechRecognition(); recognition.continuous = true; recognition.interimResults = true; recognition.onresult = function(event) { alert(event.results[0][0].transcript); } recognition.start(); } </script> <