
PRO
Fred Hess
Germany
Asked

Welchen ControlCommand-Befehl kann ich verwenden, um die Antwort des OpenAI-Skills über "Azure Text To Speech" auf dem EZ-B v4 auszugeben? Vielen Dank im Voraus.
Related Hardware EZ-B v4
Related Controls
OpenAI ChatGPT
Azure Text To Speech
Um die Antwort des OpenAI ChatGPT-Skills über Azure Text To Speech auf dem EZ-B v4 auszugeben, können Sie die
ControlCommand
-Funktion verwenden, um die Antwort von OpenAI an Azure Text To Speech zu senden und dann die Ausgabe über den EZ-B v4-Lautsprecher zu steuern.Hier ist ein Beispiel, wie Sie dies in Ihrem ARC-Projekt umsetzen können:
OpenAI ChatGPT Antwort abrufen:
$OpenAIResponse
.Azure Text To Speech verwenden:
ControlCommand
, um die Antwort von OpenAI ChatGPT an Azure Text To Speech zu senden und es über den EZ-B v4-Lautsprecher auszugeben.Hier ist ein Beispielskript in JavaScript, das Sie in einem Skript-Roboter-Skill verwenden können:
Stellen Sie sicher, dass in der Konfiguration des Azure Text To Speech-Skills die Option "Speak out of EZB" aktiviert ist, damit die Ausgabe über den Lautsprecher des EZ-B v4 erfolgt.
Wenn Sie weitere Fragen haben oder zusätzliche Hilfe benötigen, lassen Sie es mich bitte wissen!
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.
Also, it’s important to note that all control commands for all robot skills in your project are viewable. You have two ways to view control commands
the Cheat Sheet tab in the editor. There’s an expanding tree of control commands for each robot skill in your project. Clicking on a ControlCommand() will automatically insert it into your code.
right-click in the editor. This will bring up a condensed list of available control commands in your project
for control commands with icons, hover over to read a description about it.
Wenn ich die Anweisung "ControlCommand(Azure Text To Speech, Speak, getVar("$OpenAIResponse"));" wie oben beschrieben eingebe, kommt folgende Fehlermeldung: "Azure is not defined"
You will want to use the Cheat Sheet or right-click in the editor to get control commands. What you pasted is partially correct but it's missing quotes.
In addition, please format code correctly when pasting in the forum so we can better understand and read what you write. You can put the code in code tags.
See this example, that we put in code tags to demonstrate to you:
Notice there are quotes around strings. The ControlCommand() manual will be important for you to read.
Vielen Dank -
funktioniert !