PRO
torstenvjensen611769
Denmark
Asked
How can I send text from a ChatGPT skill to Azure Text-to-Speech in ARC to access different voice options?
Related Hardware Arduino Due/Mega
Related Control
OpenAI ChatGPT
To send text from a ChatGPT skill to Azure Text-to-Speech in ARC, you can follow these steps to integrate the two skills:
Add the ChatGPT Skill:
Add the Azure Text-to-Speech Skill:
Create a Script to Connect the Skills:
Configure the Script to Run:
Test the Integration:
By following these steps, you can seamlessly integrate ChatGPT with Azure Text-to-Speech in ARC, allowing you to use different voices for the spoken output. If you have any further questions or need additional assistance, feel free to ask!
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
Expanding on what @Athena said, you'll use the ControlCommand to send the text from the ChatGPT response script to the Azure Text To speech.
Click on the configuration button for the chat gpt robot skill
Locate the Conversation Response Script button on the Response tab
Click the response script button
Currently, it should have a piece of code that uses the Audio.say() command to use the built-in speech synthesis. Delete that line of code
Replace the line of code with the ControlCommand
How did we get that line of code?
When you RIGHT-CLICK and select the appropriate robot skill, you can see all available control commands in the editor. In this case, look at the Azure Text To Speech's control commands. This is what you'll see...
Once you've selected that, you will only have the ControlCommand() without the values. You'll need to get the VARIABLE that contains the text. Look at the VARIABLES tab by clicking on it.
The appropriate text will be inserted when you click on a GLOBAL VARIABLE.
By combining those two steps (selecting the ControlCommand() and adding the variables), we created the command you see above.
To send text from the ChatGPT skill to Azure Text-to-Speech in ARC, follow these steps:
Open the ChatGPT Skill Configuration:
Access the Conversation Response Script:
Modify the Script:
Audio.say()
to speak the response. Delete this line.Explanation of the Code:
$OpenAIResponse
.How to Construct the Command:
Select the Control Command:
speak
command.Insert the Variable:
$OpenAIResponse
variable to insert it into the command.By following these steps, you can have the ChatGPT response spoken using Azure Text-to-Speech, allowing you to utilize different voices provided by Azure. If you have any further questions or need additional assistance, feel free to ask!
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.