---
slug: "iOS7の、TextToSpeechを使って、iOSに喋らせる"
title: "iOS7の、Text To Speech を使って、iOSに喋らせる"
description: "\n\n\n\nローファイ。\n日本語も鳴らせる。\n日本語は若干歪んでる。\n\nAVFoundationフレームワークが必要"
url: "https://www.ytyng.com/blog/iOS7の、TextToSpeechを使って、iOSに喋らせる"
publish_date: "2013-09-30T13:40:33Z"
created: "2013-09-30T13:40:33Z"
updated: "2026-02-27T10:44:37.232Z"
categories: ["iOS"]
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/baf1cdfe96b642688b99144460b1be87.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "ja"
---

# iOS7の、Text To Speech を使って、iOSに喋らせる

<div class="document">


<ul class="simple">
<li>ローファイ。</li>
<li>日本語も鳴らせる。</li>
<li>日本語は若干歪んでる。</li>
</ul>
<p>AVFoundationフレームワークが必要</p>
<pre class="literal-block">#import &lt;AVFoundation/AVFoundation.h&gt;

AVSpeechUtterance *utterance = [AVSpeechUtterance
                              speechUtteranceWithString:@"The quick brown fox"];
// 言語、省略時はiOS設定に従う
utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-US"];
utterance.rate = 0.2;
utterance.volume = 0.8;

AVSpeechSynthesizer *synth = [[AVSpeechSynthesizer alloc] init];
[synth speakUtterance:utterance];
</pre>
</div>
