SDK for Aliyun tts service
Project description
Python 语言版本
Install
pip install aliyun_voice
TTS 【语音合成服务】
Voice(ACCESS_ID, ACCESS_KEY)
阿里云认证。
from aliyun_voice.voice import Voice auth = Voice(ALIYUNACCESSID, ALIYUNACCESSKEY)
auth.get_voice(text, **tts_params)
获取语音文件字节数组,或抛出错误。
auth.save_voice(text, dist, **tts_params)
存储语音文件到指定目录【dist】,或抛出错误。
auth.tts_params
设置语音文件属性,参考:https://help.aliyun.com/document_detail/52793.html?spm=5176.doc30422.6.587.Z6Muvv
Test
python -m unittest discover -v
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aliyun_voice-1.0.2.tar.gz
(4.2 kB
view details)
File details
Details for the file aliyun_voice-1.0.2.tar.gz
.
File metadata
- Download URL: aliyun_voice-1.0.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9bed8ff91e7ad735b34a5351245c3cbaf31ef0a074c9c4370aaf6748fe3dab4 |
|
MD5 | 74862b0415adbe2a8954638809dd3e68 |
|
BLAKE2b-256 | 648e66d1c84ed3779159d116a55ea16af01b0ac2889e23820966ec53c3bce76e |