macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

startSpeakingString:toURL:

テキストを話して、指定したファイルURLに保存します
-(BOOL)startSpeakingString:(NSString *)string:
             toURL:(NSURL *)url:

解説

テキストを話して、指定したファイルURLに保存します。

返り値

( BOOL )

YES/NO

引数

( NSString * )string

話す文字列

( NSURL * )url

ファイルのURL

フレームワーク

ApplicationKit

クラス

NSSpeechSynthesizer

Instance Methods

使用可能

10.3

参照

-isSpeaking
-startSpeakingString:
-stopSpeaking ,NSURL class (Foundation)

例文

[speech startSpeakingString:@"Hello" toURL:[NSURL URLWithString:@"file://localhost/Users/oomori/Desktop/aaa.aiff"]];