Loading files
f28aa5c47This file is pinned to the selected release. Download the original to open it in your design tool.
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/stack-chan-374381865.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
f28aa5c47This file is pinned to the selected release. Download the original to open it in your design tool.
# ぽしょぽしょ独り言スタックチャン
スタックチャンが独り言を喋るデモです。A ボタンを押すと設定した音声をランダムに発話します。
TTS(音声合成)の使用は事前生成とリモートの2つの方法があります。
TTS についての詳細は[TTS(音声合成)の使用](../../docs/text-to-speech_ja.md)を参照してください。
## 事前生成
* `assets`ディレクトリに音声ファイルを格納します。
* `speeches_monologue.js`の変数`speeches`の key に格納した音声ファイル名を記載します。
* 変数`speeches`のvalueは任意値でも問題ありません。
例)音声ファイル`niceToMeetYou`、`hello`、`konnichiwa`、`nihao`を格納した場合
```javascript
// speeches.js
export const speeches = {
niceToMeetYou: 'Hello. I am Stach-chan. Nice to meet you.',
hello: 'Hello World.',
konnichiwa: 'Konnichiwa.',
nihao: 'Nee hao.',
}
```
## リモート
* ホストファームウェアを書き込む時に `manifest_local.json`の`config.tts`を使用する TTS エンジンに合わせて設定します。
* `speeches_monologue.js`の変数`speeches`の value に発話する文章を記載します。
* 変数`speeches`のkeyは任意値でも問題ありません。
例)`niceToMeetYou`、`hello`、`konnichiwa`、`nihao`を発話する場合
```javascript
// speeches.js
export const speeches = {
sentense1: 'Hello. I am Stach-chan. Nice to meet you.',
sentense2: 'Hello World.',
sentense3: 'Konnichiwa.',
sentense4: 'Nee hao.',
}
```