Skip to content

Commit 8e196ff

Browse files
committed
add post
1 parent 9384693 commit 8e196ff

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: Elixir で Open JTalk を使い、IEx に日本語をしゃべらせてみた
3+
tags:
4+
- mecab
5+
- Elixir
6+
- 日本語
7+
- OpenJTalk
8+
- iex
9+
private: false
10+
updated_at: '2025-11-09T14:12:07+09:00'
11+
id: becc3c1fa35958921965
12+
organization_url_name: fukuokaex
13+
slide: false
14+
ignorePublish: false
15+
---
16+
17+
## はじめに
18+
19+
IEx で日本語音声を発声させてみます。
20+
21+
## TL;DR
22+
23+
まず、Elixir がインストールされていることを確認します。
24+
25+
```bash
26+
$ elixir --version
27+
Erlang/OTP 28 [erts-16.1.1] [source] [64-bit] [smp:20:20] [ds:20:20:10] [async-threads:1] [jit:ns]
28+
29+
Elixir 1.19.2 (compiled with Erlang/OTP 28)
30+
```
31+
32+
IEx(Elixir の対話シェル)を起動します。
33+
34+
```bash:ターミナル
35+
$ iex
36+
```
37+
38+
そして、日本語をしゃべらせてみましょう。
39+
40+
```elixir:IEx
41+
iex> Mix.install([{:open_jtalk_elixir, "~> 0.3"}])
42+
43+
iex> OpenJTalk.say("元氣ですかあ 、元氣が有れば、なんでもできる!")
44+
```
45+
46+
[![Watch the demo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f9bdkpv5fbp7mi2c7vlp.png)](https://github.com/user-attachments/assets/69d2579c-2d6f-47e5-bcfc-16b955ee8df0)
47+
48+
## おわりに
49+
50+
たったこれだけで、日本語の発声ができます。
51+
52+
このライブラリは、友人と組み込み開発に取り組んでいたときに生まれたものです。
53+
よかったら、ラズパイにも日本語を喋らせてみてください。
54+
55+
https://qiita.com/mnishiguchi/items/e7c96c6caae15f16fbbf

0 commit comments

Comments
 (0)