我正在使用AVSpeechSynthesizer進行TTS功能測試。我想知道AVSpeechSynthesizer是否支持離線。 我用幾種語言嘗試了幾個文本,它支持離線。我想確保它支持所有語言的離線或不支持。 Does AVSpeechSynthesizer support offline for all the supported language?
使用語音到文本功能我可以很容易地獲得一個標籤。但我想把話語2加入話語。我想先說出話語,然後在話語完成後立刻講出話語。 let utterance = AVSpeechUtterance(string: dptext.text!)
let utterance2 = AVSpeechUtterance(string: dptext2.text!)
let synthesizer
我有一個啓用分頁的集合視圖。我正在使用AVSpeechSynthesizer將文本轉換爲集合視圖的單元格中的語音。當我從一個單元格滑動到另一個單元格時,我希望語音停止。現在我正在調用在單元類中聲明的stopSpeech函數。 //Cell Class
import UIKit
import AVFoundation
class DetailArticleCell: UICollection