Linux/Ubuntu2026. 5. 6. 22:29

예전에 우분투에서 이상하게 반응이 느렸던 문제로 찾았던건데

llm 에서 한글 발음을 영어로 적게 해서 이걸 festival 통해 wav로 생성하고

메신저로 넘기게 하면 어떨려나?

 

echo "linuxquestions.org" > mytext.txt
text2wave -o mytext.wav myaudio.txt

[링크 : https://wiki.linuxquestions.org/wiki/Text2wave]

[링크 : https://wiki.archlinux.org/title/Festival]

[링크 : https://manpages.ubuntu.com/manpages/resolute/man1/festival.1.html]

[링크 : https://manpages.ubuntu.com/manpages/trusty/man1/text2wave.1.html]

 

+

2026.05.07

ai 가라사대~

설치된 음성은 festival 실행해서 괄호넣어서 하면 나오는데

$ festival

Festival Speech Synthesis System 2.5.0:release December 2017
Copyright (C) University of Edinburgh, 1996-2010. All rights reserved.

clunits: Copyright (C) University of Edinburgh and CMU 1997-2010
clustergen_engine: Copyright (C) Carnegie Mellon University 2005-2017
hts_engine: 
The HMM-Based Speech Synthesis Engine "hts_engine API"
hts_engine API version 1.07 (http://hts-engine.sourceforge.net/)
Copyright (C) The HMM-Based Speech Synthesis Engine "hts_engine API"
Version 1.07 (http://hts-engine.sourceforge.net/)
Copyright (C) 2001-2012 Nagoya Institute of Technology
              2001-2008 Tokyo Institute of Technology
All rights reserved.

All rights reserved.
For details type `(festival_warranty)'
festival> voice.list
#<CLOSURE nil (begin "(voice.list)
List of all (potential) voices in the system.  This checks the voice-location
list of potential voices found be scanning the voice-path at start up time.
These names can be used as arguments to voice.description and
voice.describe." (mapcar car voice-locations))>
festival> (voice.list) 
(kal_diphone)

 

festvox로 추가 음성을 설치할 수 있다고 한다.

$ apt-cache search festvox*
flite - Small run-time speech synthesis engine
flite1-dev - Small run-time speech synthesis engine - development files
freetts - 음성 합성 시스템
libflite1 - 작은 런타임 음성 합성 엔진 - 공유 라이브러리
festvox-ca-ona-hts - Catalan female speaker for festival, 16kHz HTS
festvox-czech-dita - Czech adult female speaker "dita" for Festival
festvox-czech-krb - Czech child male speaker "krb" for Festival
festvox-czech-machac - Czech adult male speaker "machac" for Festival
festvox-czech-ph - Czech male speaker for Festival
festvox-hi-nsk - Hindi male speaker for festival
festvox-italp16k - Italian female speaker for Festival
festvox-itapc16k - Italian male speaker for Festival
festvox-kallpc16k - American English male speaker for festival, 16khz sample rate
festvox-kallpc8k - American English male speaker for festival, 8khz sample rate
festvox-kdlpc16k - American English male speaker for festival, 16khz sample rate
festvox-kdlpc8k - American English male speaker for festival, 8khz sample rate
festvox-mr-nsk - Marathi male speaker for festival
festvox-ru - Russian male speaker for Festival
festvox-suopuhe-common - Common files for Festival Finnish speakers
festvox-suopuhe-lj - Finnish female speaker for Festival
festvox-suopuhe-mv - Finnish male speaker for festival
festvox-te-nsk - Telugu (te) male speaker for festival
festvox-us-slt-hts - : US English voice for Festival. 32kHz sample rate, HTS
festvox-don - minimal British English male speaker for festival
festvox-ellpc11k - Castilian Spanish male speaker for Festival
festvox-en1 - mbrola-en1 voice support for festival
festvox-rablpc16k - British English male speaker for festival, 16khz sample rate
festvox-rablpc8k - British English male speaker for festival, 8khz sample rate
festvox-us1 - mbrola-us1 voice support for festival
festvox-us2 - mbrola-us2 voice support for festival
festvox-us3 - mbrola-us3 voice support for festival

 

echo "Hello" | festival --tts --voice voice_kal_diphone

(Parameter.set 'Duration_Stretch 1.3) ; 느리게
(set! duffint_params '((start 120) (end 140))) ; 피치 변경

 

For example
will make everything speak more slowly.

[링크 : https://www.cstr.ed.ac.uk/projects/festival/manual/festival_19.html#SEC72]

  [링크 : https://www.cstr.ed.ac.uk/projects/festival/manual/]

 

festival> help
"The Festival Speech Synthesizer System: Help

Getting Help
  (doc '<SYMBOL>)   displays help on <SYMBOL>
  (manual nil)      displays manual in local netscape
  C-c               return to top level
  C-d or (quit)     Exit Festival
(If compiled with editline)
  M-h               displays help on current symbol  
  M-s               speaks help on current symbol  
  M-m               displays relevant manual page in local netscape
  TAB               Command, symbol and filename completion
  C-p or up-arrow   Previous command
  C-b or left-arrow Move back one character
  C-f or right-arrow 
                    Move forward one character
  Normal Emacs commands work for editing command line

Doing stuff
  (SayText TEXT)      Synthesize text, text should be surrounded by
                      double quotes
  (tts FILENAME nil)  Say contexts of file, FILENAME should be 
                      surrounded by double quotes
  (voice_rab_diphone) Select voice (Britsh Male)
  (voice_kal_diphone) Select voice (American Male)
"

 

 

'Linux > Ubuntu' 카테고리의 다른 글

luit  (0) 2026.03.23
ubuntu 22.04 bgr 패널 대응  (0) 2025.12.29
clamav  (0) 2025.12.22
evince (리눅스 pdf 뷰어) 네비게이션  (0) 2025.12.11
ubuntu 22.04 bgr subpixel 대응 찾기 실패  (0) 2025.11.25
Posted by 구차니