As a sanity check I installed this framework:
SwiftTTS from https://github.com/renaudjenny/swift-tts
wrapping it in this class:
import Combine
import SwiftTTSCombine
class VoiceSynth: NSObject{
let engine: TTSEngine = SwiftTTSCombine.Engine()
var cancellables = Set<AnyCancellable>()
func sayThis(_ phrase: String){
engine.speak(string: phrase)
}
func isSpeaking(){
engine.isSpeakingPublisher
.sink { isSpeaking in
print("TTS is currently \(isSpeaking ? "speaking" : "not speaking")")
}
.store(in: &cancellables)
}
}
Then initialised the class in the @main with: var voiceSynth = VoiceSynth()
And the app throws:
FactoryInstall Unable to query results, error: 5
Unable to list voice folder
As before.
Thanks
Maz
Topic:
Media Technologies
SubTopic:
Audio
Tags: