Intel Realsense T265 icon Intel Realsense T265 T265 VSLAM for ARC: SLAM-based mapping and precise way-point navigation, low-power tracking, and NMS telemetry. Try it →
South Africa
Asked — Edited
Resolved Resolved by ptp!

Sdk: Speechsynthesis.Say(), Outputs To Pc Audio

Hi.

I am trying to output speech on the EZB using the SDK.

EZ_B.­Speech­Synth.­Say(­System.­String) outputs to PC Audio. The SDK documentation mentions that it plays to the "Default Audio Device".

Quote:

Method:EZ_B.­Speech­Synth.­Say(­System.­String) Say MSG to the default audio device
However, I can't find where to specify the EZB as the output device.

Thanks.


ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

Author Avatar
PRO
USA
#1  

That method uses Windows default audio device.

if you want to output to the EZB:


public partial class Form1 : Form
{
    private EZB ezb;

...

    private void SayEzb(string text, bool wait)
    {
        using (var ms = this.ezb.SpeechSynth.SayToStream(text))
        {
            if (wait)
            {
                this.ezb.SoundV4.PlayDataWait(ms);
            }
            else
            {
                this.ezb.SoundV4.PlayData(ms);
            }
        }
    }
....
Author Avatar
South Africa
#2  

I see. I thought It may have been something like that.

Thanks for the detailed example.

Cheers.