Skip to content

Add hume voices list and hume voices delete#3

Merged
twitchard merged 8 commits intomainfrom
twitchard/add-voice-list-delete
Apr 8, 2025
Merged

Add hume voices list and hume voices delete#3
twitchard merged 8 commits intomainfrom
twitchard/add-voice-list-delete

Conversation

@twitchard
Copy link
Contributor

@twitchard twitchard commented Apr 3, 2025

Notes:

  • hume voices list defaults to listing custom voices. You specify --provider HUME_AI for shared voices.
  • I changed hume tts "blah" --voice-name "VINCE DOUGLAS" --preset-voice to hume tts "blah" --voice-name "VINCE DOUGLAS" --provider HUME_AI for consistency with the API. Something about hume voices list --preset-voice seemed wrong to me.

Tested

$ bun run src/index.ts  voices list
│
◇  Listing your custom voices
│
◆  ARISTOCRAT-1739409352712 (15dd57c9-758c-469a-bbbc-32d2b4e6e501)
│
◆  LOSER (9b9c14bb-13ac-4be1-9022-99f48ea470f8)
│
◆  NARRATOR (46e3555f-9bb5-4281-9752-f5e9745c884c)
│
◆  PERSON_2 (2ffe6460-574b-4198-b0dc-2b130aaec7cd)
$ bun run src/index.ts  voices delete LOSER
Error: Extraneous positional argument ("LOSER").

hume voices delete [--api-key #0]

Permanently deletes a voice by name.

(1) $ bun run src/index.ts  voices delete --name LOSER
│
◇  Deleting voice "LOSER"
│
◆  Voice "LOSER" deleted successfully

@twitchard
Copy link
Contributor Author

More testing

◆  There are more voices available. Use --page-number 1 to retrieve them.
$ bun run src/index.ts  voices list  --page-size 2
│
◇  Listing your custom voices
│
◆  ARISTOCRAT-1739409352712 (15dd57c9-758c-469a-bbbc-32d2b4e6e501)
│
◆  NARRATOR (46e3555f-9bb5-4281-9752-f5e9745c884c)
│
◆  There are more voices available. Use --page-number 1 to retrieve them.
$ bun run src/index.ts  voices list --page-number 1 --page-size 2
│
◇  Listing your custom voices
│
◆  PERSON_2 (2ffe6460-574b-4198-b0dc-2b130aaec7cd)
│
◆  ENVIOUS (10a4aa9f-07ae-4b35-a14a-0351bf356374)
│
◆  There are more voices available. Use --page-number 2 to retrieve them.
$ bun run src/index.ts  voices list --page-number 2 --page-size 2
│
◇  Listing your custom voices
│
◆  PIRATEY (45acedb0-d878-42c1-8941-4b2ab1ce00db)
│
◆  ARISTOCRAT-1740570857125 (d5838bfe-3859-4d87-923b-f140fcf0afcc)
│
◆  There are more voices available. Use --page-number 3 to retrieve them.

@zgreathouse zgreathouse self-requested a review April 8, 2025 18:52
Co-authored-by: Zachary Greathouse <26175515+zgreathouse@users.noreply.github.com>
@twitchard twitchard merged commit a192d96 into main Apr 8, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants