text-to-speech

Use of sound files in TTS on Marshmallow (Android 6) fails with permission issues

杀马特。学长 韩版系。学妹 提交于 2021-02-07 06:48:31
问题 Using addSpeech() in android TTS, you can link a certain text to a sound file. Then, the TTS engine plays the file instead of synthesizing the sound of the text (also in question at Android TTS(Text to Speech)'s addSpeech() and speak() can't play a sound file in the external storage from marshmallow(api 23) above, with Google TTS ). This is not working in Android 6.0 with TTS version 3.9.14 (and 3.10.10). So far, I did not see ant post with an answer as to why this is not working in Android 6

AttributeError: module 'pyttsx3' has no attribute 'init'

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-05 08:04:23
问题 First of all, I'm using: Windows 10 Python 3.6.2 (but I've tried with Python 3.5.4 too) pyttsx3 module I'm trying to use pyttsx3 but I just can't initialize it, with the official code examples. My code (just like the examples from here and here): import pyttsx3 engine = pyttsx3.init() engine.say('Just a sample text.') engine.runAndWait() And the second line gives me this error: AttributeError: module 'pyttsx3' has no attribute 'init' I installed it with PIP: pip install pyttsx3 And I tried to

AttributeError: module 'pyttsx3' has no attribute 'init'

筅森魡賤 提交于 2021-02-05 08:03:32
问题 First of all, I'm using: Windows 10 Python 3.6.2 (but I've tried with Python 3.5.4 too) pyttsx3 module I'm trying to use pyttsx3 but I just can't initialize it, with the official code examples. My code (just like the examples from here and here): import pyttsx3 engine = pyttsx3.init() engine.say('Just a sample text.') engine.runAndWait() And the second line gives me this error: AttributeError: module 'pyttsx3' has no attribute 'init' I installed it with PIP: pip install pyttsx3 And I tried to

Can't pip microsoft azure-cognitiveservices-speech?

雨燕双飞 提交于 2021-02-05 05:31:11
问题 Following the guide here to install the microsoft azure text to speech SDK: https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/quickstart-python#install-the-speech-sdk It says to run pip install azure-cognitiveservices-speech , but unfortunately this returns Could not find a version that satisfies the requirement azure->cognitiveservices-speech (from versions: ) No matching distribution found for >azure-cognitiveservices-speech I've tried adding the version # at the end

Can't pip microsoft azure-cognitiveservices-speech?

 ̄綄美尐妖づ 提交于 2021-02-05 05:28:05
问题 Following the guide here to install the microsoft azure text to speech SDK: https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/quickstart-python#install-the-speech-sdk It says to run pip install azure-cognitiveservices-speech , but unfortunately this returns Could not find a version that satisfies the requirement azure->cognitiveservices-speech (from versions: ) No matching distribution found for >azure-cognitiveservices-speech I've tried adding the version # at the end

Text to speech pattern in Android

て烟熏妆下的殇ゞ 提交于 2021-02-04 08:37:07
问题 I'm trying to use TextToSpeech in my app. I wrote it as a bound service. Problem appears when I need to read text before activity stops. It says just half of text because activity calls unbind and finish itself. What is better pattern to write Text to speech if I dont want write it direct into actvivity? 回答1: Instead of just bind service, start your service using startService() and then bind. After reading the text in onUtteranceCompleted() call stopSelf() . 回答2: Here is my implementation -

Is there a way to change pitch of local engine text-to-speech voice in python

女生的网名这么多〃 提交于 2021-01-29 16:59:19
问题 I am using text-to-speech in my python project but not getting any way to increase or decrease the pitch level of the local machine voice in python. Here is my basic code: import pyttsx3 import datetime import speech_recognition as sr import random print("Intializing Toretto") engine = pyttsx3.init('sapi5') voices = engine.getProperty('voices') engine.setProperty('voice',voices[1].id) engine.setProperty('rate', 210) def speak(audio): engine.say(audio) engine.runAndWait() 回答1: you should add a

How to save a text to speech audio file client side?

一笑奈何 提交于 2021-01-29 12:39:36
问题 desired behaviour allow user to download text to speech audio file by clicking a button, like this official demo: https://text-to-speech-starter-kit.ng.bluemix.net what i've tried i am using: https://github.com/watson-developer-cloud/node-sdk i can generate an audio file server side but can't figure out how to send that file back to the client for them to save - so i am trying to generate it client side instead. attempt 01: generate audio file server side server.js (works) const fs = require(

How to save a text to speech audio file client side?

别来无恙 提交于 2021-01-29 10:58:13
问题 desired behaviour allow user to download text to speech audio file by clicking a button, like this official demo: https://text-to-speech-starter-kit.ng.bluemix.net what i've tried i am using: https://github.com/watson-developer-cloud/node-sdk i can generate an audio file server side but can't figure out how to send that file back to the client for them to save - so i am trying to generate it client side instead. attempt 01: generate audio file server side server.js (works) const fs = require(

Xamarin Forms: How to highlight text and pause/play audio of text to speech?

≡放荡痞女 提交于 2021-01-29 09:00:25
问题 I am using the xamarin essentials package for text to speech feature. When speech the text I need to highlight the corresponding text. Also, I need an option to pause/play the speech. Please see this video. Screenshot: How can I achieve highlight text feature and pause/play audio as the video? 回答1: highlight text feature You could splite the Text of Label . And use Span to set the highlight . in xaml <StackLayout x:Name="firstPage" VerticalOptions="CenterAndExpand" HorizontalOptions=