1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

MacOS、もういい加減複数言語の読み上げに対応しよう、をShortcuts.appで解決する

Last updated at Posted at 2023-06-10

追記:

文章を単語ごとに分解し、それぞれの言語で読み上げるように変更しました。
キーボードショートカット ⌘F5

目標:

MacOSに複数言語のテキスト読み上げに対応させる。

現状:

System Settings - Accesibility - Spoken Content - System Speech Language
で設定した言語で読み上げられる。だから日本語に設定していて"Hello, world"を読ませると、「ハロー!ワールド!」(日本語訛りマシマシ)となって腹がたつ。

Screenshot 2023-06-10 at 12.43.23.png
Screenshot 2023-06-10 at 12.46.18.png

できたもの:

読み上げコンテンツ と同じようにテキストを選択して実行するQuick Action。
選択されたテキストから言語を認識し、その発音で朗読する。

キーボードショートカット: ⌘F5

Screenshot 2023-06-10 at 12.41.23.png

Screenshot 2023-06-10 at 12.50.45.png

配布状態では英語日本語中国語に対応している。
新たに対応させたい言語があれば、Shortcutのif文を追加してください。
If文のDetectedLanguage is 言語名

キーボードショートカットの変更は
Screenshot 2023-06-10 at 12.56.59.png

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?