diff --git a/lib/mi-voice-bridge.ts b/lib/mi-voice-bridge.ts index 1b3b991e..45a99628 100644 --- a/lib/mi-voice-bridge.ts +++ b/lib/mi-voice-bridge.ts @@ -30,7 +30,7 @@ export class MiVoiceBridge { constructor(opts: MiVoiceBridgeOptions = {}) { this.#bridgeUrl = opts.bridgeUrl ?? DEFAULT_BRIDGE; - this.#voice = opts.voice ?? "en-US-AndrewMultilingualNeural"; + this.#voice = opts.voice ?? "en-US-EmmaMultilingualNeural"; this.#onStateChange = opts.onStateChange ?? null; } @@ -191,7 +191,7 @@ export class MiVoiceBridge { const res = await fetch(`${this.#bridgeUrl}${TTS_PATH}`, { method: "POST", headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ text, voice: this.#voice, volume: 0.3, rate: "-10%", pitch: "-6Hz" }), + body: JSON.stringify({ text, voice: this.#voice, volume: 0.25, rate: "-8%", pitch: "+0Hz" }), }); if (!res.ok) { ws.removeEventListener("message", handler); @@ -224,8 +224,8 @@ export class MiVoiceBridge { this.#speakResolve = resolve; const utterance = new SpeechSynthesisUtterance(text); utterance.rate = 0.95; - utterance.pitch = 0.85; - utterance.volume = 0.3; + utterance.pitch = 1.0; + utterance.volume = 0.25; utterance.onend = () => { this.#speakResolve = null; resolve();