iPhoneアプリでテキストを読み上げたい

74 views
Skip to first unread message

a a

unread,
Oct 26, 2020, 4:07:29 AM10/26/20
to radstu...@googlegroups.com
iPhoneアプリでテキスト読み上げ機能を実装する方法が知りたいです。
AVSpeechSynthesizerを簡単に利用できないでしょうか?
Delphiでの実装が難しいのであれば、XamarinかSwiftで開発しようと思います。

参考
Xamarin.Forms テキスト読み上げの実装
https://riptutorial.com/ja/xamarin-forms/example/7968/テキスト読み上げの実装

[Swift] AVSpeechSynthesizerで読み上げ機能を使ってみる
https://dev.classmethod.jp/articles/swfit-avspeechsynthesizer/

Delphiで入力した文字を話すAndroidアプリケーションを作る
https://mam-mam.net/delphi/android_speech.html

「 Androidにお話させる 」
http://mam-mam.net/mytech/show.php?cd=235

how can I implement text-2-speech function in iOS app via firemonkey?
https://stackoverflow.com/questions/55904378/how-can-i-implement-text-2-speech-function-in-ios-app-via-firemonkey

FMXExpress/ios-object-pascal-wrapper
https://github.com/FMXExpress/ios-object-pascal-wrapper

Hikaru Fukushi

unread,
Oct 26, 2020, 7:43:27 AM10/26/20
to radstu...@googlegroups.com
a aさん、こんばんは。福士と申します。

> iPhoneアプリでテキスト読み上げ機能を実装する方法が知りたいです。
> AVSpeechSynthesizerを簡単に利用できないでしょうか?

簡単かどうかはともかく、以下の記事やコードが参考になるのでは
ないでしょうか。

Cross Platform Text-to-Speech - grijjy blog
https://blog.grijjy.com/2017/01/09/cross-platform-text-to-speech/

JustAddCode/TextToSpeech at master ・ grijjy/JustAddCode ・ GitHub
https://github.com/grijjy/JustAddCode/tree/master/TextToSpeech

参考にしてください。

---
東洋テクニカルシステム株式会社 システム開発部 福士 光
Hikaru Fukushi (Toyo Technical System Inc.)
mailto:fuk...@tts-inc.co.jp

ruby7777777

unread,
Oct 31, 2020, 2:43:19 AM10/31/20
to Japan RAD Studio User Group
質問に回答して頂きありがとうございます。

TextToSpeechのExampleを参考にして、iPhoneアプリを作ってみました。
きちんと日本語を読み上げてくれました。
簡単でした(笑)。
https://github.com/grijjy/JustAddCode/tree/master/TextToSpeech/Example


プロジェクトには3ファイルを追加しました。
Grijjy.TextToSpeech.pas
Grijjy.TextToSpeech.Base.pas
Grijjy.TextToSpeech.iOS.pas
https://github.com/grijjy/JustAddCode/tree/master/TextToSpeech

環境
Windows 8.1
Delphi 10.3.3 Community Edition

iPhone 13.6  

2020年10月26日月曜日 20:43:27 UTC+9 Hikaru Fukushi:
Reply all
Reply to author
Forward
0 new messages