gpt4 book ai didi

ios - AVSpeechSynthesizer 支持哪些语言?

转载 作者:可可西里 更新时间:2023-11-01 06:24:41 24 4
gpt4 key购买 nike

AVSpeechSynthesizer 似乎支持多代表英语(英国,美国...)

是否支持其他语言?法语、葡萄牙语……某处有这些语言的列表吗?

最佳答案

是的,确实如此。使用 AVSpeechSynthesisVoicespeechVoices获取支持语言的可用语音列表。

let voices = AVSpeechSynthesisVoice.speechVoices() //list of supported voices
print(voices[0].language) //print first voice locale

目前(截至 2018 年 9 月 10 日,在 iOS 10.3.1 和 11.4.1 上)你会发现这些:

  • ar-SA
  • CS-CZ
  • 大DK
  • 去DE
  • el-GR
  • zh-CN
  • zh-CN
  • en-IE
  • zh-CN
  • zh-CN
  • es-ES
  • es-MX
  • fi-fi
  • fr-CA
  • fr-FR
  • 他-IL
  • 高音
  • 呼呼
  • 身份证号码
  • 它-IT
  • ja-JP
  • ko-KR
  • nl-BE
  • nl-nl
  • 不-不
  • PL-PL
  • pt-BR
  • 点对点
  • 滚装
  • ru-ru
  • sk-sk
  • sv-SE
  • 第-TH
  • tr-TR
  • zh-CN
  • zh-HK
  • zh-TW

关于ios - AVSpeechSynthesizer 支持哪些语言?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20990225/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com