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> {
|
||||
if (!this.models) return [];
|
||||
return this.models.map((mod) => mod.model_id);
|
||||
return this.models.map((mod) => mod.name);
|
||||
}
|
||||
|
||||
private async fetchVoices(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user