-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #332 from harmony-one/v11-voices
V11 voices
- Loading branch information
Showing
10 changed files
with
6,393 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { ElevenlabsClient } from './elevenlabsClient' | ||
import config from '../config' | ||
|
||
function labelsToString (labels: Record<string, string>): string { | ||
return Object.entries(labels).reduce((acc, item) => { | ||
return acc + item.join(': ') + '; ' | ||
}, '') | ||
} | ||
|
||
async function main (): Promise<void> { | ||
const client = new ElevenlabsClient(config.elevenlabs.apiKey) | ||
const voiceList = await client.voiceList() | ||
|
||
for (const voice of voiceList) { | ||
console.log(voice.voice_id, voice.name, '\t', labelsToString(voice.labels)) | ||
} | ||
} | ||
|
||
main().then(() => { console.log('### finish') }).catch(console.log) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.