0
en-us音声付きAVSpeechsynthesizerは "A"は "Capital A"の発音ですが、 "A"だけはどうしたらいいですか?AVSpeechSynthesizerテキスト音声変換
en-us音声付きAVSpeechsynthesizerは "A"は "Capital A"の発音ですが、 "A"だけはどうしたらいいですか?AVSpeechSynthesizerテキスト音声変換
文字列内の単一の文字がある場合にのみ、文字列のな長さは、それが小文字の文字列に変換するよりも1である場合は、チェックのこの回避策を使用することができ、
NSString *stringToUtter = @"A";
if (stringToUtter.length==1) {
stringToUtter = [stringToUtter lowercaseString];
}
AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc] initWithString:stringToUtter];
utterance.rate = AVSpeechUtteranceMinimumSpeechRate;
utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-us"];
[self.synthesizer speakUtterance:utterance];
感謝you.itsを
起こります私のために働く –