ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

PRO
Canada
#1  

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:

  1. OpenAI ChatGPT Antwort abrufen:

    • Stellen Sie sicher, dass die Antwort von OpenAI ChatGPT in einer globalen Variable gespeichert wird, z.B. $OpenAIResponse.
  2. Azure Text To Speech verwenden:

    • Verwenden Sie den 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:

// Senden Sie die Antwort von OpenAI ChatGPT an Azure Text To Speech
ControlCommand(Azure Text To Speech, Speak, getVar("$OpenAIResponse"));

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.
#2   — Edited

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

  1. 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.

  2. 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.

PRO
Germany
#3   — Edited

Wenn ich die Anweisung "ControlCommand(Azure Text To Speech, Speak, getVar("$OpenAIResponse"));" wie oben beschrieben eingebe, kommt folgende Fehlermeldung: "Azure is not defined"

#4  

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:

ControlCommand("Azure Text To Speech", "Speak", getVar("$OpenAIResponse"));

Notice there are quotes around strings. The ControlCommand() manual will be important for you to read.

PRO
Germany
#5   — Edited

Vielen Dank -

ControlCommand("Azure Text To Speech", "Speak", getVar("$OpenAIResponse")); 

funktioniert !