edge tts go
v0.1.0
edge-tts-go 는 Golang 코드 내에서 Microsoft Edge의 온라인 텍스트 음성 서비스 서비스를 사용하거나 제공된 edge-tts-go 명령을 사용할 수있는 Golang 모듈입니다.
설치하려면 다음 명령을 실행하십시오.
$ go install github.com/surfaceyu/edge-tts-go
edge-tts-go 명령을 사용하려면 다음 명령으로 간단히 실행할 수 있습니다.
$ edge-tts-go --text "Hello, world!" --write-media hello.mp3
연설의 언어를 바꾸거나 일반적으로 목소리를 바꾸고 싶다면.
먼저 --list-voices 옵션으로 사용 가능한 음성을 확인해야합니다.
$ edge-tts-go --list-voices
Name: Microsoft Server Speech Text to Speech Voice (af-ZA, AdriNeural)
ShortName: af-ZA-AdriNeural
Gender: Female
Locale: af-ZA
Name: Microsoft Server Speech Text to Speech Voice (am-ET, MekdesNeural)
ShortName: am-ET-MekdesNeural
Gender: Female
Locale: am-ET
Name: Microsoft Server Speech Text to Speech Voice (ar-EG, SalmaNeural)
ShortName: ar-EG-SalmaNeural
Gender: Female
Locale: ar-EG
Name: Microsoft Server Speech Text to Speech Voice (ar-SA, ZariyahNeural)
ShortName: ar-SA-ZariyahNeural
Gender: Female
Locale: ar-SA
...
$ edge-tts-go --voice zh-CN-XiaoxiaoNeural --text "秦时明月汉时关,万里长征人未还" --write-media hello_in_chinese.mp3
생성 된 연설을 약간 변경할 수 있습니다.
$ edge-tts-go --rate=-50% --text "Hello, world!" --write-media hello_with_rate_halved.mp3
$ edge-tts-go --volume=-50% --text "Hello, world!" --write-media hello_with_volume_halved.mp3
GO에서 직접 edge-tts-go 모듈을 사용할 수 있습니다. 예제 응용 프로그램 목록 :