Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/quiet-dodos-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@livekit/agents-plugin-gradium': patch
---

Honor voice ID updates and use Harper as the default Gradium TTS voice.
4 changes: 2 additions & 2 deletions plugins/gradium/src/tts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function resolveOptions(opts: Partial<TTSOptions>): ResolvedTTSOptions {
modelEndpoint,
modelName: opts.modelName ?? 'default',
voice: opts.voice,
voiceId: opts.voiceId ?? 'YTpq7expH9539ERJ',
voiceId: opts.voiceId ?? '4SZHfMpw-p46Ywgs',
pronunciationId: opts.pronunciationId,
jsonConfig: opts.jsonConfig,
wordTokenizer: opts.wordTokenizer ?? new tokenize.basic.WordTokenizer(false),
Expand Down Expand Up @@ -147,7 +147,7 @@ export class TTS extends tts.TTS {
return 'Gradium';
}

updateOptions(opts: Partial<Pick<TTSOptions, 'voice' | 'jsonConfig'>>) {
updateOptions(opts: Partial<Pick<TTSOptions, 'voice' | 'voiceId' | 'jsonConfig'>>) {
this.#opts = { ...this.#opts, ...opts };
}

Expand Down