Skip to content

Instantly share code, notes, and snippets.

@yuki777
Created November 15, 2024 09:39
Show Gist options
  • Save yuki777/3c62c7a22e1f4636ad70b2fc22f6d70a to your computer and use it in GitHub Desktop.
Save yuki777/3c62c7a22e1f4636ad70b2fc22f6d70a to your computer and use it in GitHub Desktop.
open_jtalkに喋らせるTTSコマンド
#!/usr/bin/env bash
ssh raspi "/home/pi/jsay/jsay.sh \"$(echo "$1" | sed 's/"/\\"/g')\""
#!/bin/bash
option="-x /var/lib/mecab/dic/open-jtalk/naist-jdic -m /usr/share/hts-voice/MMDAgent_Example-1.8/Voice/mei/mei_normal.htsvoice -ow tempfile"
echo "$1" | tr '\n' ' ' | /usr/bin/open_jtalk $option
aplay -D plughw:1,0 -q tempfile
#aplay -D plughw:2,0 -q tempfile
rm -f tempfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment