fix: getModels should return name not id
This commit is contained in:
@@ -137,7 +137,7 @@ export class ElevenLabsTTS implements TTSModule {
|
|||||||
|
|
||||||
public getModels(): Array<string> {
|
public getModels(): Array<string> {
|
||||||
if (!this.models) return [];
|
if (!this.models) return [];
|
||||||
return this.models.map((mod) => mod.model_id);
|
return this.models.map((mod) => mod.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async fetchVoices(): Promise<void> {
|
private async fetchVoices(): Promise<void> {
|
||||||
|
|||||||
Reference in New Issue
Block a user