Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

242
Views
JS Azure Speech SDK Text to Speech (control volume for AudioConfig)

I'm working with azure text to speech service for enabling voice based outputs. Using Speech SDK Javascript.

For outputing the sound, im creating fromSpeakerOutput instance with custom iPlayer (as in docs).

const browserSound = new speechsdk.SpeakerAudioDestination();
const audioConfig = speechsdk.AudioConfig.fromSpeakerOutput(browserSound);
var synthesizer = new speechsdk.SpeechSynthesizer(speechConfig, audioConfig);

Issue is, i need some iPlayer customizations like pause, resume, stop current sound. I could see only pause and resume. Is there any way i could cancel current playing sound ?

Thanks.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Issue is, i need some iPlayer customizations like pause, resume, stop current sound. I could see only pause and resume. Is there any way i could cancel current playing sound ?

JavaScript: Added volume getter/setter and mute()/unmute() APIs to SpeakerAudioDestination

 public get volume(): number {
        return this.privAudio.volume;
    }

    public set volume(volume: number) {
        this.privAudio.volume = volume;
    }

    public mute(): void {
        this.privAudio.muted = true;
    }

    public unmute(): void {
        this.privAudio.muted = false;
    }

Reference: Speech SDK 1.20.0: January 2022 release

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!