4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Elixir で Open JTalk を使い、IEx に日本語をしゃべらせてみた

Last updated at Posted at 2025-11-09

はじめに

IEx で日本語音声を発声させてみます。

TL;DR

まず、Elixir がインストールされていることを確認します。

ターミナル
$ elixir --version
Erlang/OTP 28 [erts-16.1.1] [source] [64-bit] [smp:20:20] [ds:20:20:10] [async-threads:1] [jit:ns]

Elixir 1.19.2 (compiled with Erlang/OTP 28)

IEx(Elixir の対話シェル)を起動します。

ターミナル
$ iex

そして、日本語をしゃべらせてみましょう。

IEx
iex> Mix.install([{:open_jtalk_elixir, "~> 0.3"}])

iex> OpenJTalk.say("元氣ですかあ 、元氣が有れば、なんでもできる!")

デモ動画: Watch the demo

おわりに

たったこれだけで、日本語の発声ができます。

このライブラリは、友人と組み込み開発に取り組んでいたときに生まれたものです。
よかったら、ラズパイにも日本語を喋らせてみてください。

4
0
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
4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?