-
Notifications
You must be signed in to change notification settings - Fork 25
support volcano TTS tools #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
veadk/tools/builtin_tools/tts.py
Outdated
| } | ||
|
|
||
|
|
||
| def tts(text: str, tool_context: ToolContext) -> bool: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
text_to_speech may be more clearer
| success = True | ||
|
|
||
| app_id = getenv("TOOL_TTS_APP_ID") | ||
| api_key = getenv("TOOL_TTS_API_KEY") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this api_key can be fetched according to Volcengine ak/sk?
veadk/tools/builtin_tools/tts.py
Outdated
|
|
||
| app_id = getenv("TOOL_TTS_APP_ID") | ||
| api_key = getenv("TOOL_TTS_API_KEY") | ||
| speaker = getenv("TOOL_TTS_SPEAKER") # e.g. zh_female_vv_mars_bigtts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For better user experiences, a default value should be given
veadk/tools/builtin_tools/tts.py
Outdated
| } | ||
|
|
||
|
|
||
| def tts(text: str, tool_context: ToolContext) -> bool: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be return a string rather than bool? (a string for file path or fail reason?)
add tts toos to veADK, provides users with the ability to convert text to speech.
sample:

envs are required, you can get parameter values in the Volcano Engine Console