Questions tagged [avspeechutterance]
45 questions
1
vote
1 answer
Get list of countries from AVSpeechSynthesisVoice
I'm trying to get the Region Code found in AVSpeechSynthesisVoice instead of e.g: en-GB.
The output I'm aiming for is as follow
This is my current code, while it works, I feel there must be a more elegant solution and from what I read, split by -…

Omar Tan
- 187
- 1
- 12
1
vote
3 answers
Does Alexa uses machine learning to learn new utterances to trigger intents of your skill?
I have an important question, at the moment i am writing my last essay before starting with my bachelor thesis. It is about voice apps, which includes the alexa skills for sure.
But i need some informations about the word tolerance of the…

Antonia Röper
- 11
- 2
1
vote
0 answers
iOS 13 TTS Crashes - Unable to find resource `lang'[kLanguage] - (AVSpeechSynthesisVoice, AVSpeechUtterance)
We are seeing a weird crash probably related to TTS (Fatal Exception: std::logic_error: Unable to find resource `lang'[kLanguage]). It happens for me with different languages, so it seems there is some change in iOS 13. Maybe the TextToSpeech…

Autily
- 209
- 1
- 4
1
vote
3 answers
Boost / increase volume of text to speech (AVSpeechUtterance) to make it louder
I have a navigation app that gives direction voice instruction (e.g. " In 200 feet turn left") using AVSpeechUtterance. I have put volume to 1 like so. speechUtteranceInstance.volume = 1, but still the volume is very low compared to the music or…

guido
- 2,792
- 1
- 21
- 40
1
vote
1 answer
Using two instances of AVSpeechSynthesizer simultaneously
I would like to use two instances of AVSpeechSynthesizer simultaneously.
let firstSynthesizer = AVSpeechSynthesizer()
let secondSynthesizer = AVSpeechSynthesizer()
func foo() {
let utterance = AVSpeechUtterance(string: "Foo Foo Foo Foo Foo")
…

MJQZ1347
- 2,607
- 7
- 27
- 49
1
vote
2 answers
AVSpeechUtterance and no speech / missing speech in Swift
I'm currently putting together my first app using XCode 9.4.1 and Swift. Within my code, I am working my way through a list and I would like each value in the list to be spoken aloud. Below is my code for this
// classificationResults is my list
for…

thefragileomen
- 1,537
- 8
- 24
- 40
1
vote
0 answers
how to increase volume in AVSpeechUtterance in swift
All
I use my project AVSpeechUtterance for text to speech when I run in a simulator is work fine but when I run in my device speech volume is very slow here my code ...
let utterance = AVSpeechUtterance(string: "Good night all")
if…

jignesh kasundra
- 101
- 9
1
vote
1 answer
SpeechUtterance not stopping
I have a collection view with paging enabled. I am using AVSpeechSynthesizer for text to speech in the cells of the collection view. I want the voice to stop when i swipe from one cell to another. Right now i am calling stopSpeech function, which is…

Ashiq Sulaiman
- 631
- 1
- 6
- 14
1
vote
2 answers
Join 2 different labels for text to speech conversion (swift3)
Using the speech to text feature I can easily get one label to be spoken. But I want utterance2 to be joined to utterance. I want utterance to be spoken first then when it is finished for utterance2 to be spoken right after.
let utterance =…
user8105388
1
vote
2 answers
Change AVSpeechUtterance rate in real time
I am currently developing an iOS app that converts text to speech using AVSynthesizer.
What I want to do is that while the synthesizer is speaking, utterance rate can be changed and with a slider and the speed of the speaking changes.
I am doing…

abnerabbey
- 125
- 1
- 10
1
vote
1 answer
The volume of AVSpeechSynthesizer (Text to Speech) playback increases by itself, ONLY on iPhone7
My iOS10 app does Text to Speech and Speech recognition. It pauses audio from other apps while this happens, and notifies the other when ASR/TTS is over so they can resume their audio.
Everything works PERFECT on iPhone5 and 6.
The problem is with…

Josh
- 6,251
- 2
- 46
- 73
0
votes
0 answers
How can I force utterance voice to override the default voice selected in the device?
I have code to use a specific voice to speak my utterance
if language == "en-GB" {
utterance.voice = AVSpeechSynthesisVoice(identifier: "com.apple.ttsbundle.siri_female_en-GB_premium")
}
try?…

Nat Serrano
- 472
- 1
- 4
- 17
0
votes
1 answer
Swift How to stop current running Voice Output of AVSpeechSynthesizer
In my app I have a behavior where it can happen that 2 AVSpeech synthesizers are playing at the same time and would therefore overlap. In this case, is there a way to cancel all voice output currently being played as soon as a new voice output is…

Tom_Swift
- 87
- 6
0
votes
0 answers
How can I make speechUtterance API utter?
When I type in something in the text area element and then click on the read button nothing is being uttered. The console doesn't throw any error and I can't identify where I've gone wrong either. I went on the "SpeechUtterance" MDN documentation…

alwaysLearning
- 131
- 7
0
votes
1 answer
AVSpeechSynthesizer plays sound with phone call speaker instead of bottom speaker
I created a function to read a text and play it with bottom speaker on the iPhone because the bottom volume is higher than phone call speaker, but it plays with phone call speaker with low volume.
@discardableResult
func speechSentence(_ text:…

mohsen
- 4,698
- 1
- 33
- 54