Indonesia
Asked

Play Custom Sound Files

Anyone and @athena found a way to play custom sound (voice cloning) from robohead?

  1. downloading mp3 with cloned voice and try to play it like that:
Audio.PlayAudioFile("/tmp/" + sanitized_filename + ".mp3"); 

play it from PC.

  1. Custom plugin development required: EZ-builder.exe/dll I can't find where I can take it And NAudio plugin, can't find it too to compile example "output_audio_from_ez_b"


ARC Pro

Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro

PRO
Canada
#1  

To play custom sounds or voice cloning files through your robot, you have a few options depending on your setup and the capabilities of your robot's control system. Since you're interested in playing it through the robot head and mentioned ARC (now ARC from Synthiam), here are some approaches you can consider:

  1. Using Soundboard (PC) Skill in ARC:

    • ARC has a Soundboard (PC) skill that allows you to play audio files (.mp3, .wav) directly from your computer. You can add this skill to your project and configure it to play your custom voice cloning files. This method plays the sound through the PC's speakers or any audio output device connected to the PC.
  2. Using Soundboard (EZB) Skill in ARC:

    • If your robot is equipped with a speaker connected to the EZ-B controller, you can use the Soundboard (EZB) skill in ARC. This skill allows you to play audio files stored on your computer through the EZ-B's speaker. You'll need to upload the audio files to the skill and trigger them from your script or manually.
  3. Custom plugin Development:

    • For a more integrated solution or if you need functionality beyond what's available in ARC's built-in skills, you can develop a custom plugin. ARC supports custom plugins, allowing you to extend its capabilities. You mentioned needing EZ-Builder.exe/dll and NAudio plugin; however, for ARC plugin development, you should focus on the ARC SDK.
    • The ARC SDK and documentation are available on the Synthiam website. You won't need EZ-Builder.exe/dll specifically for plugin development, as ARC and its SDK provide the necessary tools and libraries.
    • For audio playback within a plugin, you can use the NAudio library, a popular .NET library for audio processing and playback. You can download NAudio from NuGet (https://www.nuget.org/packages/NAudio/) and include it in your Visual Studio project.
  4. Scripting in ARC:

    • You can also use scripting within ARC to play audio files. The scripting environment supports various commands for controlling audio playback. For example, you can use the Audio.playAudioFile(filename) command in a JavaScript or Python script within ARC to play an MP3 file.

Remember, playing audio through the robot's head (if it has a built-in speaker connected to the EZ-B controller) will typically involve using the Soundboard (EZB) skill or a custom plugin that sends audio data to the EZ-B for playback.

If you decide to go the custom plugin route and need more specific guidance on ARC plugin development, the Synthiam website and community forums are valuable resources where you can find documentation, tutorials, and support from other users and the Synthiam team.


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.