Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Swiftでもいろんな文字_の読み上げをしたい__.pdf

 Swiftでもいろんな文字_の読み上げをしたい__.pdf

Avatar for entaku

entaku

July 19, 2025
Tweet

More Decks by entaku

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ • Name: entaku • Job: iOSΤϯδχΞ / • Hobby:

    • ԻָϑΣεɺαοΧʔ؍ઓ • ݸਓ։ൃ • Other • DroidKaigiελοϑͳͲ • SwiftѪ޷ձओ࠵ͳͲ • ॳതଟॳ෱Ԭॳ۝भ X
  2. // Create an utterance. let utterance = AVSpeechUtterance(string: "The quick

    brown fox jumped over the lazy dog.") // Configure the utterance. utterance.rate = 0.57 utterance.pitchMultiplier = 0.8 utterance.postUtteranceDelay = 0.2 utterance.volume = 0.8 // Retrieve the British English voice. let voice = AVSpeechSynthesisVoice(language: "en-GB") // Assign the voice to the utterance. utterance.voice = voice https://developer.apple.com/documentation/avfaudio/speech-synthesis αϯϓϧίʔυ
  3. // Create an utterance. let utterance = AVSpeechUtterance(string: "͜Μʹͪ͸ʂࠓ೔͸ HAKATA.swiftʹࢀՃ͍ͯ͠·͢ɻ")

    // Configure the utterance. utterance.rate = 0.57 utterance.pitchMultiplier = 0.8 utterance.postUtteranceDelay = 0.2 utterance.volume = 0.8 // Assign the voice to the utterance. utterance.voice = voice https://developer.apple.com/documentation/avfaudio/speech-synthesis ࣮ࡍʹ࿩ͤͯ͞Έ·͠ΐ͏