HOME > 馬鹿 > 日本語テã‚ストèªã¿ä¸Šã’(ガイジン風)
日本語テã‚ストèªã¿ä¸Šã’(ガイジン風)
ã¾ãšã¯ã€ã‚µãƒ³ãƒ—ルをã©ã†ãžï¼ˆmp3)。カビパン男ã¨ç§ã€æ±äº¬éƒ½ç‰¹è¨±è¨±å¯å±€ã€é‡‘å¤ªè² ã‘ã‚‹ãªã€‚
日本語èªã¿ä¸Šã’ã®ãƒ•ãƒªãƒ¼ãªãƒ„ールãŒä½•ã‹ãªã„ã‚‚ã®ã‹ã¨ã€è€ƒãˆãŸã€‚英文用ã®ãªã‚‰ã€Linux 環境ã§ã‚‚ç°¡å˜ã«æ‰‹ã«å…¥ã‚‹ã®ã ãŒâ€¦â€¦
ãã“ã§ã€ã‚¢ãƒ¡ãƒªã‚«äººãŒèªã‚るよã†ãªå½¢ã§ã‚¢ãƒ«ãƒ•ã‚¡ãƒ™ãƒƒãƒˆè¡¨è¨˜ã—ã¦ã‚„ã‚Œã°ã€è‹±æ–‡ç”¨ã®èªã¿ä¸Šã’ソフトãŒä½¿ãˆãã†ã ã¨ã€ã¾ã‚安易ã«è€ƒãˆãŸã‚ã‘ã 。
ã¾ãšã€æ¼¢å—ã‹ãªäº¤ã˜ã‚Šã®æ–‡ã‚’ kakasi ã§å¹³ä»®åã«ã—ã¦ã€sed ã®ã‚¹ã‚¯ãƒªãƒ—トã§ã‚¢ãƒ«ãƒ•ã‚¡ãƒ™ãƒƒãƒˆåŒ–(kakasi ã§ãƒãƒ¼ãƒžå—出力ã—ãŸã ã‘ã§ã¯é§„目駄目ãªã®ã )。ãれを flite ã¨ã„ã†ã‚¢ãƒ¡ãƒªã‚«è‹±èªžèªã¿ä¸Šã’ソフトã§èªã¾ã›ã¦ã¿ãŸã€‚費用ï¼å††ã€‚
$ echo "カビパン男ã¨ç§" | kakasi -JH -KH | sed -f nihongo.sed | flite - kabipan.wav
ã®ã‚ˆã†ã«ã‚„ã£ãŸï¼ˆæ–‡å—コードã®å•é¡Œã¯å„自ã®ç’°å¢ƒã§å¯¾å‡¦ã—ã¦ãã‚Œã‡ï¼‰ã€‚ã“ã® sed スクリプトã®ä½œæˆãŒçµæ§‹é¢å€’ã ã£ãŸã€‚ãŸã¨ãˆã°ã€Œã‚«ãƒ“パン男ã¨ç§ã€ã¯ã€Œka be pa unn o toh ko toh wa ta shiã€ã«å¤‰æ›ã•ã‚Œã‚‹ã®ã 。
(2009-10-30(Fri)改訂)
s/\([ã‚ã‹ãŒã•ã–ãŸã ãªã¯ã°ã±ã¾ã‚„ゃらã‚]\)ー/\1ã‚/g s/\([ã„ããŽã—ã˜ã¡ã¢ã¬ã²ã³ã´ã¿ã‚Šã‚]\)ー/\1ã„/g s/\([ã†ããã™ãšã¤ã¬ãµã¶ã·ã‚€ã‚†ã‚…ã‚‹]\)ー/\1ã†/g s/\([ãˆã‘ã’ã›ãœã¦ã§ãã¸ã¹ãºã‚れゑ]\)ー/\1ãˆ/g s/\([ãŠã“ãã¨ã®ã»ã¼ã½ã‚‚よã‚をょ]\)ー/\1ãŠ/g s/ãゃ/cah /g s/ãã‚…/kyoo /g s/ãょ/kjo /g s/ãŽã‚ƒ/gaeh /g s/ãŽã‚…/ghiu /g s/ãŽã‚‡/kyo /g s/ã—ゃ/sha /g s/ã—ã‚…/shoo /g s/ã—ょ/sho /g s/ã˜ã‚ƒ/dzae /g s/ã˜ã‚…/joo /g s/ã˜ã‚‡/jo /g s/ã¢ã‚ƒ/dzae /g s/ã¢ã‚…/dzoo /g s/ã¢ã‚‡/dzoe /g s/ã¡ã‚ƒ/cha /g s/ã¡ã‚…/choo /g s/ã¡ã‚‡/cho /g s/ã²ã‚ƒ/hih ja /g s/ã²ã‚…/hue /g s/ã²ã‚‡/heo /g s/ã¿ã‚ƒ/meaa /g s/ã¿ã‚…/miu /g s/ã¿ã‚‡/mih yo /g s/ã‚/ah /g s/ã„/ee /g s/ã†/oo /g s/ãˆ/eh /g s/ãŠ/o /g s/ã‹/ka /g s/ã/ki /g s/ã/koo /g s/ã‘/keh /g s/ã“/ko /g s/ãŒ/ga /g s/ãŽ/ghi /g s/ã/goo /g s/ã’/geh /g s/ã”/go /g s/ã•/sa /g s/ã—/shi /g s/ã™/soo /g s/ã›/seh /g s/ã/so /g s/ã–/za /g s/ã˜/zi /g s/ãš/zoo /g s/ãœ/zeh /g s/ãž/zo /g s/ãŸ/ta /g s/ã¡/chee /g s/ã¤/tsoo /g s/ã¦/teh /g s/ã¨/toh /g s/ã /da /g s/ã¢/dzi /g s/ã¥/dzoo /g s/ã§/deh /g s/ã©/doh /g s/ãª/na /g s/ã«/ni /g s/ã¬/noo /g s/ã/neh /g s/ã®/no /g s/ã¯/ha /g s/ã²/he /g s/ãµ/foo /g s/ã¸/heh /g s/ã»/ho /g s/ã°/ba /g s/ã³ã‚‡/byo /g s/ã³/be /g s/ã¶/boo /g s/ã¹/beh /g s/ã¼/bo /g s/ã±/pa /g s/ã´ã‚‡/hyo /g s/ã´/pe /g s/ã·/poo /g s/ãº/peh /g s/ã½/po /g s/ã¾/ma /g s/ã¿/mi /g s/ã‚€/moo /g s/ã‚/meh /g s/ã‚‚/mo /g s/ã‚„/ya /g s/ゆ/yoo /g s/よ/yo /g s/ら/ra /g s/ã‚Š/ri /g s/ã‚‹/roo /g s/ã‚Œ/re /g s/ã‚/ro /g s/ã‚/wa /g s/ã‚/wi /g s/ã‚‘/weh /g s/ã‚’/wo /g s/ã‚“/unn /g
while read text;do echo $text | kakasi -JH -KH | sed -f ~/bin/nihongo.sed | flite - tmp.wav; beep-media-player tmp.wav;done
ãªã©ã¨ã‚„ã£ã¦ã‚‚éŠã¹ã‚‹ã€‚