Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ElevenLabs-DotNet 2.0.0 #26

Merged
merged 18 commits into from
Oct 29, 2023
Merged

ElevenLabs-DotNet 2.0.0 #26

merged 18 commits into from
Oct 29, 2023

Conversation

StephenHodgson
Copy link
Member

@StephenHodgson StephenHodgson commented Oct 26, 2023

Refactoring to support latest API changes

  • Biggest Change is the new VoiceClip signature for all endpoints which contains all the information about the generated clip.
  • Refactored HistoryEndpoint
    • Made HistoryInfo public
  • GetHistoryAsync now returns HistoryInfo and contains additional pageSize and startAfter properties
    • Added GetHistoryItemAsync
    • Renamed GetHistoryAudioAsync -> DownloadHistoryAudioAsync
  • DownloadHistoryItemsAsync now returns a list of VoiceClips, and no longer asks for saveDirectory
  • HistoryItem.TextHash was modified to generate hash based on item id, instead of voiceId
  • Refactored ModelsEndpoint
    • Added Model.MultiLingualV2
  • Refactored TextToSpeechEndpoint
    • Refactored TextToSpeechAsync
      • Removed saveDirectory parameter
      • Removed deleteCachedFile parameter
      • Added outputFormat parameter
      • Changed return type to VoiceClip
    • Refactored StreamTextToSpeechAsync
      • Removed saveDirectory parameter
      • Removed deleteCachedFile parameter
      • Added outputFormat
  • Added partialClipCallback for queuing and playing partial clips as they are received
  • Refactored VoiceGenerationEndpoint
    • Renamed GenerateVoiceAsync -> GenerateVoicePreviewAsync
      • Removed saveDirectory parameter
    • Renamed GeneratedVoiceRequest -> GeneratedVoicePreviewRequest
  • Refactored VoicesEndpoint
    • Preserve default values in VoiceSettings
    • Refactored GetVoiceAsync
      • withSettings parameter is now false by default per API
    • Renamed GetVoiceSampleAsync -> DownloadVoiceSampleAsync
      • Changed return type to VoiceClip
      • Removed saveDirectory parameter

@StephenHodgson StephenHodgson marked this pull request as ready for review October 29, 2023 17:44
@StephenHodgson StephenHodgson merged commit 38cd9a7 into main Oct 29, 2023
1 check passed
@StephenHodgson StephenHodgson deleted the development branch October 29, 2023 18:45
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.

Customize the file name and locations of saved audio clips Implement Text To Speech Streaming
1 participant