Questions tagged [avspeechutterance]

45 questions
0
votes
0 answers

AVSpeechUtterance 10% step rate changes

I need to implement AVSpeechUtterance rate change in range from 50% to 150% relative to normal speed with a step of 10%. The problem is that I can't really find neither absolute, nor relative rate values to build on. I do know that normal rate value…
0
votes
1 answer

AVSpeechSynthesizer: how to display in a default player view

I use AVSpeechSynthesizer to play text books via audio. private lazy var synthesizer: AVSpeechSynthesizer = { let synthesizer = AVSpeechSynthesizer() synthesizer.delegate = self return synthesizer }() let utterance =…
Paul T.
  • 4,938
  • 7
  • 45
  • 93
0
votes
1 answer

AVSpeechSynthesizer writeUtterance. How to find if complete utterance is being written to the file?

I was refering to below link : - OBJC AVSpeechUtterance writeUtterance how? for an answer to my problem. But the above link works well w.r.t. writing only one audio file from AVSpeechSynthesizer. What if I need to write multiple raw pcm audio files…
0
votes
1 answer

Speech Synthesizer Pause Speaking returns true but doesn't pause text

so I'm trying to get my speech synthesiser to pause, but for some reason, it's not pausing. I'm a beginner so I've been trying a few things but can't seem to figure out why. Would appreciate if someone can show me what went wrong. The stop button…
Omar Tan
  • 187
  • 1
  • 12
0
votes
1 answer

OBJC AVSpeechUtterance writeUtterance how?

I am trying to create a TTS to file in Objc. Since iOS13 can write it to a file. But I'm stuck with writeUtterance:toBufferCallback. Do someone has an exemple with this function in objc? [synth speakUtterance:utterance];
0
votes
1 answer

Swift Text-To-Speech - pronunciation

how I can set pronunciation for 1 word in AVSpeechUtterance? for example - read [ri:d], read [red], read [red] spelled the same but pronounced differently AVSpeechUtterance(string: "read") // in second form, how?
EvGeniy Ilyin
  • 1,817
  • 1
  • 21
  • 38
0
votes
0 answers

Combining Animoji and AVSpeechSynthesizer with Swift?

I'm attempting to mix and match Animoji and the AVSpeechSynthesizer so that I could call a list of quotes and have an Animoji visually present and available and speaking them. I'm not sure if this is possible with Swift / Swift Playgrounds, but I'd…
esaruoho
  • 896
  • 1
  • 7
  • 25
0
votes
2 answers

Errors with multi turn dialog in alexa skills

I have created a skill with name "BuyDog" and its invocation name is "dog app" So that should mean, I can use the intents defined inside only after the invocation name is heard. (is that correct?) Then I have defined the Intents with slots as: "what…
0
votes
1 answer

Disabling automatic date detection for AVSpeechSyntesizer/AVSpeechUtterance

Today I stumbled upon a very curious behaviour of iOS's AVSpeechSynthesizer. If I give it a string containing "DON 21" using the German language, it'll say "Donnerstag, 21.". (It will automatically translate "THU 21" to "Thursday 21st" and read this…
Geru
  • 624
  • 1
  • 7
  • 20
0
votes
1 answer

AVSpeechSynthesiser bugging ViewDidLoad function

Whenever I navigate to this view controller, the speakText() function in viewDidLoad for some reason doesn't work and the view controller takes a long time to load (this is not the case when I remove that line). Above that line, a text label's text…
0
votes
1 answer

iOS: AVSpeechSynthesizer - supports offline?

I am using AVSpeechSynthesizer for TTS functinality. I want to know whether AVSpeechSynthesizer supports offline. I tried few texts in few languages, It supports offline. I want to sure it supports offline for all languages or not. Does…
Sridhar
  • 2,228
  • 10
  • 48
  • 79
0
votes
1 answer

Swift - Changing volume while speechutterance is speaking

I have been trying to get my fader to adjust the volume of the tts "live" but I cannot. I can only set the volume when the text first starts. Anyway to do this? UPDATE: I was able to access the delegate using the following changes to my…
0
votes
1 answer

Swift Clear AVSpeechSynthesizer Before Speaking

I am using the code below to speak a string in my app. var mySynthesizer = AVSpeechSynthesizer() var myUtterance = AVSpeechUtterance(string: "Hello World!") myUtterance.voice = AVSpeechSynthesisVoice(language: "en-US") myUtterance.pitchMultiplier =…
Tom Coomer
  • 6,227
  • 12
  • 45
  • 82
0
votes
1 answer

AVSpeechSynthesizer language

In my app I'm using AVSpeechSynthesizer, the text speeches is russian, the problem is when I'm changing system language to English the text pronounce with english accent, sounds like transcription of russian language. How can I manage this…
Alexandr Kolesnik
  • 1,929
  • 1
  • 17
  • 30
-1
votes
2 answers

Executing text-to-speech in order

I want to synthesize text. I have an array of sentences and array of pauses, that I wish between these sentences. What was the thought Synthesize -> start the timer, timer fires after provided time -> Synthesize -> start the timer -> Synt... By…
1 2
3