tetos
0.4.1
다중 텍스트 음성 (TTS) 공급자에 대한 통합 인터페이스.
| 공급자 | 요구 사항 |
|---|---|
| 가장자리 tts | - |
| Openai tts | api_key : OpenAI API 키 |
| Azure tts | speech_key : Azure Speech Service 키speech_region : Azure Speech Service 지역 |
| Google TTS | Google Cloud 콘솔에서 텍스트 음성 API를 활성화하십시오 ENV var var GOOGLE_APPLICATION_CREDENTIALS 서비스 계정 키 파일의 경로로 |
| 화산 TTS (火山引擎) | access_key : VolcEngine Access 키 ID. (여기서 얻으십시오)secret_key : VolcEngine Access Secret Key. (여기서 얻으십시오)app_key : VolCENGINE APP 키 |
| 바이두 TTS | api_key : Baidu API 키secret_key : Baidu Secret Key둘 다 콘솔에서 얻을 수 있습니다 |
| Minimax tts | api_key : Minimax API 키group_id : Minimax Group ID둘 다 Minimax 콘솔에서 획득 할 수 있습니다 |
| tts | app_id : xunfei app idapi_key : XUNFEI API 키api_secret : Xunfei API 비밀 |
| 물고기 오디오 | api_key : Fish Audio API 키 |
Tetos는 Python 3.8 이상이 필요합니다.
pip install tetos tetos PROVIDER [PROVIDER_OPTIONS] TEXT [--output FILE]
사용 가능한 공급자 및 옵션을 위해 tetos --help 실행하십시오.
예
tetos google "Hello, world!"
tetos azure "Hello, world!" --output output.mp3 # save to another file
tetos edge --lang zh-CN "你好,世界!" # specify language
tetos openai --voice echo "Hello, world!" # specify voice
예를 들어 Azure TTS를 사용하십시오.
from tetos . azure import AzureSpeaker
speaker = AzureSpeaker ( speech_key = '...' , speech_region = '...' )
speaker . say ( 'Hello, world!' , 'output.mp3' )초기화 매개 변수는 다른 공급자에 대해 다를 수 있습니다.
Tetos는 프록시 환경 변수 HTTP_PROXY , HTTPS_PROXY , ALL_PROXY 및 NO_PROXY 존중합니다.
아파치 라이센스 2.0