Use prompts to control a model so it outputs actions, expressions, and emotional speech in replies. This applies to multimodal scenarios such as smart robot dogs and AI glasses.
Output actions and expressions in responses
Use the internal Large Language Model (LLM) in the multi-modal suite to generate system-configured actions and responses. This enables the device to perform actions while interacting with the user. The LLM generates instructions and responses in a single inference, ensuring low latency and maintaining consistency between actions or expressions and the response content to create a more engaging and natural interaction.
Example action list
The following is a list of configured actions. You can customize the action content.
Practice 1: Standard JSON format output
Output format
The output uses standard JSON format. The action_query field contains the generated action instruction, and the response field contains the corresponding generated response. You can customize the field content and definitions in the prompt.
Prompt template
You can customize the instruction content, output field names, output field meanings, and output field format in the prompt.
Practice 2: Natural language format output
JSON format output may include redundant fields, which can introduce latency. Alternatively, you can output execution results in natural language format. When using this format, parse standardized actions using special symbols.
Output format
Prompt template
You can customize the instruction content, output field names, output field meanings, and output field format in the prompt.
Practice 3: Simplified solution, without complex action parameters available
Emotional speech
-
The cosyvoice-v3-plus and cosyvoice-v3-flash models support emotion control for the Long Anhuan, Long Anyang, Long Huhu, Long Huohuo, and Long Chuanshu voices.
- Supported emotions: The default is neutral. You can switch to happy, angry, fearful, sad, surprised, or disgusted. The suitability of each emotion may vary slightly depending on the voice characteristics.
- Prompt reference