From ba947f1cf78eb3a8cc7a8bb4f67cea1455e54209 Mon Sep 17 00:00:00 2001 From: fdp <1286779656@qq.com> Date: Mon, 8 Sep 2025 19:12:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E4=B8=8D=E6=92=AD=E6=8A=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IntegratedSpeechTranslationService.swift | 141 +++++++++++------- 1 file changed, 83 insertions(+), 58 deletions(-) diff --git a/local_plugins/azure_speech/ios/azure_speech/Sources/azure_speech/IntegratedSpeechTranslationService.swift b/local_plugins/azure_speech/ios/azure_speech/Sources/azure_speech/IntegratedSpeechTranslationService.swift index a0023e047..4659e56c3 100644 --- a/local_plugins/azure_speech/ios/azure_speech/Sources/azure_speech/IntegratedSpeechTranslationService.swift +++ b/local_plugins/azure_speech/ios/azure_speech/Sources/azure_speech/IntegratedSpeechTranslationService.swift @@ -777,68 +777,93 @@ import os.log let voice: String switch language { - // 亚洲地区 - case "zh-CN": - voice = "zh-CN-XiaoxiaoNeural" - case "zh-TW": - voice = "zh-TW-HsiaoNeural" - case "zh-HK": - voice = "zh-HK-HiuGaaiNeural" - case "ja-JP": - voice = "ja-JP-NanamiNeural" - case "ko-KR": - voice = "ko-KR-SunHiNeural" - case "hi-IN": - voice = "hi-IN-KalpanaNeural" - case "ta-IN": - voice = "ta-IN-SundarNeural" - case "th-TH": - voice = "th-TH-PattaraNeural" - case "vi-VN": - voice = "vi-VN-AnhNeural" + // 中文相关 + case "zh-CN": + voice = "zh-CN-XiaoxiaoNeural" + case "zh-TW": + voice = "zh-TW-HsiaoChenNeural" + case "zh-HK": + voice = "zh-HK-HiuMaanNeural" - // 欧洲地区 - case "en-US": - voice = "en-US-AriaNeural" - case "en-GB": - voice = "en-GB-SusanNeural" - case "fr-FR": - voice = "fr-FR-DeniseNeural" - case "de-DE": - voice = "de-DE-KatjaNeural" - case "es-ES": - voice = "es-ES-ElviraNeural" - case "it-IT": - voice = "it-IT-DonatellaNeural" - case "pl-PL": - voice = "pl-PL-JozefinaNeural" - case "ru-RU": - voice = "ru-RU-DariaNeural" + // 英语相关 + case "en-US": + voice = "en-US-AriaNeural" - // 中东/非洲 - case "ar-SA": - voice = "ar-SA-MajdNeural" - case "he-IL": - voice = "he-IL-NoaNeural" - case "sw-KE": - voice = "sw-KE-SabinaNeural" + // 亚洲语言 + case "ja-JP": + voice = "ja-JP-NanamiNeural" + case "ko-KR": + voice = "ko-KR-SunHiNeural" + case "th-TH": + voice = "th-TH-PremwadeeNeural" + case "vi-VN": + voice = "vi-VN-HoaiMyNeural" + case "id-ID": + voice = "id-ID-GadisNeural" + case "hi-IN": + voice = "hi-IN-SwaraNeural" + case "ms-MY": + voice = "ms-MY-YasminNeural" + case "bn-IN": + voice = "bn-IN-TanishaaNeural" + case "ta-IN": + voice = "ta-IN-PallaviNeural" + case "te-IN": + voice = "te-IN-ShrutiNeural" + case "mr-IN": + voice = "mr-IN-AarohiNeural" + case "ur-IN": + voice = "ur-IN-GulNeural" + case "tr-TR": + voice = "tr-TR-EmelNeural" + case "fa-IR": + voice = "fa-IR-DilaraNeural" - // 美洲/大洋洲 - case "pt-BR": - voice = "pt-BR-ManuelaNeural" - case "es-MX": - voice = "es-MX-CarlaNeural" - - // 其他重要语言 - case "tr-TR": - voice = "tr-TR-SerifeNeural" - case "uk-UA": - voice = "uk-UA-OksanaNeural" - case "fa-IR": - voice = "fa-IR-SaraNeural" - case "nl-NL": - voice = "nl-NL-LotteNeural" + // 欧洲语言 + case "fr-FR": + voice = "fr-FR-DeniseNeural" + case "es-ES": + voice = "es-ES-ElviraNeural" + case "pt-BR": + voice = "pt-BR-FranciscaNeural" + case "it-IT": + voice = "it-IT-ElsaNeural" + case "de-DE": + voice = "de-DE-KatjaNeural" + case "ru-RU": + voice = "ru-RU-SvetlanaNeural" + case "pl-PL": + voice = "pl-PL-AgnieszkaNeural" + case "nl-NL": + voice = "nl-NL-ColetteNeural" + case "sv-SE": + voice = "sv-SE-SofieNeural" + case "cs-CZ": + voice = "cs-CZ-VlastaNeural" + case "el-GR": + voice = "el-GR-AthinaNeural" + case "ro-RO": + voice = "ro-RO-AlinaNeural" + case "hu-HU": + voice = "hu-HU-NoemiNeural" + case "uk-UA": + voice = "uk-UA-PolinaNeural" + case "da-DK": + voice = "da-DK-ChristelNeural" + case "fi-FI": + voice = "fi-FI-NooraNeural" + case "nb-NO": + voice = "nb-NO-IselinNeural" + case "hr-HR": + voice = "hr-HR-GabrijelaNeural" + case "ca-ES": + voice = "ca-ES-JoanaNeural" + // 阿拉伯语和非洲语言 + case "ar-EG": + voice = "ar-EG-SalmaNeural" + case "sw-KE": + voice = "sw-KE-ZuriNeural" default: voice = "en-US-AriaNeural" // 默认回退英语 }