@@ -70,3 +70,24 @@ Since this example is using Cartesia, checkout the best practices given in Carte
|
|||||||
<https://docs.cartesia.ai/build-with-sonic/formatting-text-for-sonic/inserting-breaks-pauses>
|
<https://docs.cartesia.ai/build-with-sonic/formatting-text-for-sonic/inserting-breaks-pauses>
|
||||||
|
|
||||||
<https://docs.cartesia.ai/build-with-sonic/formatting-text-for-sonic/spelling-out-input-text>
|
<https://docs.cartesia.ai/build-with-sonic/formatting-text-for-sonic/spelling-out-input-text>
|
||||||
|
### Example
|
||||||
|
```python
|
||||||
|
messages = [
|
||||||
|
{
|
||||||
|
"role": "system",
|
||||||
|
"content": '''You are a helpful AI assistant. Format all responses following these guidelines:
|
||||||
|
|
||||||
|
1. Use proper punctuation and end each response with appropriate punctuation
|
||||||
|
2. Format dates as MM/DD/YYYY
|
||||||
|
3. Insert pauses using - or <break time='1s' /> for longer pauses
|
||||||
|
4. Use ?? for emphasized questions
|
||||||
|
5. Avoid quotation marks unless citing
|
||||||
|
6. Add spaces between URLs/emails and punctuation marks
|
||||||
|
7. For domain-specific terms or proper nouns, provide pronunciation guidance in [brackets]
|
||||||
|
8. Keep responses clear and concise
|
||||||
|
9. Use appropriate voice/language pairs for multilingual content
|
||||||
|
|
||||||
|
Your goal is to demonstrate these capabilities in a succinct way. Your output will be converted to audio, so maintain natural communication flow. Respond creatively and helpfully, but keep responses brief. Start by introducing yourself.'''
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user