Skip to content

feat:Update ElevenLabs API documentation in openapi.yaml with new endpoints and models#6

Merged
github-actions[bot] merged 1 commit intomainfrom
bot/update-openapi_202410232116
Oct 23, 2024
Merged

feat:Update ElevenLabs API documentation in openapi.yaml with new endpoints and models#6
github-actions[bot] merged 1 commit intomainfrom
bot/update-openapi_202410232116

Conversation

@HavenDV
Copy link
Contributor

@HavenDV HavenDV commented Oct 23, 2024

Summary by CodeRabbit

  • New Features

    • Introduced multiple new API endpoints for voice generation and pronunciation dictionary management.
    • Enhanced functionality for generating voice previews and creating voices from previews.
    • Added options for retrieving and managing shared voices.
  • Improvements

    • Updated existing endpoints with new parameters and improved response models for clarity and functionality.
    • Expanded schema definitions to support new features and provide comprehensive documentation.

@coderabbitai
Copy link

coderabbitai bot commented Oct 23, 2024

Walkthrough

The changes in the pull request involve significant updates to the ElevenLabs API documentation within the openapi.yaml file. New endpoints have been added for voice generation, management, and pronunciation dictionary operations. Existing endpoints have been modified to include new parameters and response structures. Additionally, schema definitions have been expanded with new models and updated existing models to enhance clarity and completeness in the documentation.

Changes

File Path Change Summary
src/libs/ElevenLabs/openapi.yaml - Added new endpoints: /v1/text-to-voice/create-previews, /v1/text-to-voice/create-voice-from-preview, /v1/shared-voices, /v1/similar-voices, /v1/pronunciation-dictionaries/add-from-file, /v1/pronunciation-dictionaries/{pronunciation_dictionary_id}/add-rules, /v1/pronunciation-dictionaries/{pronunciation_dictionary_id}/remove-rules.
- Updated existing endpoints with new parameters and response structures.
- Introduced new schemas: VoicePreviewResponseModel, VoicePreviewsResponseModel, AddVoiceIVCResponseModel.
- Updated schemas: ProjectResponseModel, ProjectExtendedResponseModel, Body_Create_a_new_voice_from_voice_preview_v1_text_to_voice_create_voice_from_preview_post, Body_Generate_a_random_voice_v1_voice_generation_generate_voice_post.

Poem

In the land of voices, new paths we tread,
With previews and rules, our words now spread.
From whispers to echoes, creations take flight,
ElevenLabs' magic, a wondrous delight!
So hop along, friends, let the voices play,
In this vibrant garden, we sing all day! 🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot merged commit c8dd3fe into main Oct 23, 2024
@coderabbitai coderabbitai bot changed the title feat:@coderabbitai feat:Update ElevenLabs API documentation in openapi.yaml with new endpoints and models Oct 23, 2024
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (4)
src/libs/ElevenLabs/openapi.yaml (4)

881-919: New text-to-voice preview endpoints are well-structured but could use more descriptive error responses

The new /v1/text-to-voice/create-previews endpoint is well documented with clear parameters and response models. However, consider adding specific error response cases beyond the generic 422 validation error.

Consider adding these common error responses:

responses:
  '400':
    description: Bad request - Invalid voice description or text length
  '429':
    description: Too many requests - Rate limit exceeded
  '500':
    description: Internal server error

Line range hint 5103-5214: Project model updates improve clarity but experimental field needs documentation

The ProjectExtendedResponseModel has been enhanced with new fields like volume_normalization, access_level, and experimental. While most fields are well documented, the experimental field lacks description.

Add description for the experimental field:

  experimental:
    title: Experimental
    type: object
+   description: Contains experimental features and configurations that may change without notice

Line range hint 1-50: API documentation header could be enhanced

While the basic API information is present, the header section could be enhanced with more details.

Consider adding:

info:
  title: ElevenLabs API Documentation
  description: 'This is the documentation for the ElevenLabs API...'
+ contact:
+   name: ElevenLabs Support
+   url: https://help.elevenlabs.io
+ license:
+   name: Proprietary
+ termsOfService: https://elevenlabs.io/terms
  version: '1.0'

Line range hint 6286-6297: Security scheme could be enhanced with additional options

The current security scheme only uses API key authentication. Consider adding rate limiting headers.

Add rate limit headers to the specification:

components:
  parameters:
    RateLimitLimit:
      name: X-RateLimit-Limit
      in: header
      description: The number of allowed requests in the current period
      schema:
        type: integer
    RateLimitRemaining:
      name: X-RateLimit-Remaining 
      in: header
      description: The number of remaining requests in the current period
      schema:
        type: integer
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 29d187b and 3492d52.

⛔ Files ignored due to path filters (75)
  • src/libs/ElevenLabs/Generated/ElevenLabs.ElevenLabsClient.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.IElevenLabsClient.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.ISpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceId.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceIdStream.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceIdStreamWithTimestamps.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.ITextToSpeechClient.CreateTextToSpeechByVoiceIdWithTimestamps.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.ITextToVoiceClient.CreateTextToVoiceCreatePreviews.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.ITextToVoiceClient.CreateTextToVoiceCreateVoiceFromPreview.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.ITextToVoiceClient.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.IUsageClient.GetUsageCharacterStats.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesAdd.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.IVoicesClient.CreateVoicesByVoiceIdEdit.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.AddVoiceIVCResponseModel.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPost.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyCreateANewVoiceFromVoicePreviewV1TextToVoiceCreateVoiceFromPreviewPostLabels.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyEditVoiceV1VoicesVoiceIdEditPost.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyGenerateAVoicePreviewFromDescriptionV1TextToVoiceCreatePreviewsPost.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPost.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPost.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechV1TextToSpeechVoiceIdPost.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPost.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.BreakdownTypes.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.ChapterResponseModel.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.FineTuningResponseModel.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.GetCharactersUsageMetricsV1UsageCharacterStatsGetBreakdownType.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModel.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModelAccessLevel.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectExtendedResponseModelExperimental.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectResponseModel.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.ProjectResponseModelAccessLevel.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewResponseModel.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewResponseModelMediaType.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoicePreviewsResponseModel.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModel.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceResponseModelSafetyControl.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingModerationCheckResponseModel.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.Models.VoiceSharingResponseModel.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceId.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceIdStream.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceIdStreamWithTimestamps.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.TextToSpeechClient.CreateTextToSpeechByVoiceIdWithTimestamps.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.TextToVoiceClient.CreateTextToVoiceCreatePreviews.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.TextToVoiceClient.CreateTextToVoiceCreateVoiceFromPreview.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.TextToVoiceClient.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.UsageClient.GetUsageCharacterStats.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesAdd.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/ElevenLabs.VoicesClient.CreateVoicesByVoiceIdEdit.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalization.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.BodyTextToSpeechStreamingV1TextToSpeechVoiceIdStreamPostApplyTextNormalizationNullable.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalization.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.BodyTextToSpeechStreamingWithTimestampsV1TextToSpeechVoiceIdStreamWithTimestampsPostApplyTextNormalizationNullable.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalization.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.BodyTextToSpeechV1TextToSpeechVoiceIdPostApplyTextNormalizationNullable.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalization.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.BodyTextToSpeechWithTimestampsV1TextToSpeechVoiceIdWithTimestampsPostApplyTextNormalizationNullable.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.BreakdownTypes.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.BreakdownTypesNullable.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.ProjectExtendedResponseModelAccessLevel.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.ProjectExtendedResponseModelAccessLevelNullable.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.ProjectResponseModelAccessLevel.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.ProjectResponseModelAccessLevelNullable.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.VoicePreviewResponseModelMediaType.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonConverters.VoicePreviewResponseModelMediaTypeNullable.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonSerializerContext.g.cs is excluded by !**/generated/**
  • src/libs/ElevenLabs/Generated/JsonSerializerContextTypes.g.cs is excluded by !**/generated/**
📒 Files selected for processing (1)
  • src/libs/ElevenLabs/openapi.yaml (47 hunks)
🧰 Additional context used
🔇 Additional comments (2)
src/libs/ElevenLabs/openapi.yaml (2)

4037-4045: Consistent text normalization parameter added across TTS endpoints

The apply_text_normalization parameter has been consistently added to all text-to-speech endpoints with identical configuration. This is a good practice for API consistency.

Also applies to: 4106-4114, 4175-4183, 4244-4252


3925-3929: Background noise removal parameter added to speech-to-speech endpoints

The remove_background_noise parameter has been added to speech-to-speech endpoints with clear documentation about its purpose and limitations.

Also applies to: 3954-3958

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.

1 participant