coze-dev / coze-dev/coze-js

WebSocket Demo中双向流式对话上行事件chat.update的data.output_audio.emotion_config.emotion,data.output_audio.context_texts等情感语气参数传递

Open
#330 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
292
Forks
99
PR merge metrics
No merged PRs in 30d

Description

除在初始化配置中填写,目前是否支持将情感、语气参数,在每一次调用语音合成时传递?即可以随着文本改变情感语气,一个常见的思路是在bot的生成内容中添加格式化context如:[context] content,然后每次调用合成语音时传入

Contributor guide

Open the contributing guide

Research direction

Start with the WebSocket demo and its chat.update event handling, then trace how data.output_audio.emotion_config.emotion and data.output_audio.context_texts are currently supplied during initialization and speech synthesis. Done means the emotion and tone parameters can vary with each synthesis call as the generated text changes, including the proposed formatted context flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.