Skip to content

fix: updates examples to aura-2 #514

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

Merged
merged 2 commits into from
Apr 14, 2025
Merged

fix: updates examples to aura-2 #514

merged 2 commits into from
Apr 14, 2025

Conversation

jpvajda
Copy link
Contributor

@jpvajda jpvajda commented Apr 7, 2025

We'll hold on merging this until we get the go ahead from Natalie

  • Adds aura-2 aura-2-thalia-en model to examples REST ONLY

Summary by CodeRabbit

  • New Features
    • The text-to-speech functionality now uses an updated voice synthesis model. This change is expected to deliver clearer, more natural audio output across the application, enhancing the overall speech experience for users.

@jpvajda jpvajda requested a review from lukeocodes April 7, 2025 23:52
Copy link
Contributor

coderabbitai bot commented Apr 7, 2025

Walkthrough

This pull request updates the text-to-speech model across various example implementations. In each affected file, the model parameter has been changed from "aura-asteria-en" to "aura-2-thalia-en" within the instantiation of either SpeakOptions or SpeakWSOptions, and within an options dictionary. The modifications span REST examples—in file, memory, and raw subdirectories—as well as WebSocket examples. There are no changes to public entities or control flow logic.

Changes

File(s) Change Summary
examples/text-to-speech/rest/file/async_hello_world/main.py, .../hello_world/main.py, .../legacy_dict_hello_world/main.py, .../woodchuck/main.py Updated model from "aura-asteria-en" to "aura-2-thalia-en" in SpeakOptions instantiation (or options dictionary)
examples/text-to-speech/rest/memory/async_hello_world/main.py, .../hello_world/main.py Updated model from "aura-asteria-en" to "aura-2-thalia-en" in SpeakOptions instantiation
examples/text-to-speech/rest/raw/async_hello_world/main.py, .../hello_world/main.py, .../hello_world_play/main.py Updated model from "aura-asteria-en" to "aura-2-thalia-en" in SpeakOptions instantiation
examples/text-to-speech/websocket/async_simple/main.py, .../output_to_wav/main.py, .../simple/main.py Updated model from "aura-asteria-en" to "aura-2-thalia-en" in SpeakWSOptions instantiation

Suggested reviewers

  • SandraRodgers

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b9561e4 and f82c83a.

📒 Files selected for processing (12)
  • examples/text-to-speech/rest/file/async_hello_world/main.py (1 hunks)
  • examples/text-to-speech/rest/file/hello_world/main.py (1 hunks)
  • examples/text-to-speech/rest/file/legacy_dict_hello_world/main.py (1 hunks)
  • examples/text-to-speech/rest/file/woodchuck/main.py (1 hunks)
  • examples/text-to-speech/rest/memory/async_hello_world/main.py (1 hunks)
  • examples/text-to-speech/rest/memory/hello_world/main.py (1 hunks)
  • examples/text-to-speech/rest/raw/async_hello_world/main.py (1 hunks)
  • examples/text-to-speech/rest/raw/hello_world/main.py (1 hunks)
  • examples/text-to-speech/rest/raw/hello_world_play/main.py (1 hunks)
  • examples/text-to-speech/websocket/async_simple/main.py (1 hunks)
  • examples/text-to-speech/websocket/output_to_wav/main.py (1 hunks)
  • examples/text-to-speech/websocket/simple/main.py (1 hunks)
🔇 Additional comments (12)
examples/text-to-speech/rest/raw/hello_world/main.py (1)

32-32: Model updated correctly to aura-2-thalia-en

The text-to-speech model has been updated from "aura-asteria-en" to "aura-2-thalia-en" as intended by the PR objectives.

examples/text-to-speech/rest/file/hello_world/main.py (1)

31-31: Model updated correctly to aura-2-thalia-en

The text-to-speech model has been updated from "aura-asteria-en" to "aura-2-thalia-en" as intended by the PR objectives.

examples/text-to-speech/websocket/output_to_wav/main.py (1)

60-60: Model updated correctly to aura-2-thalia-en

The text-to-speech model has been updated from "aura-asteria-en" to "aura-2-thalia-en" in the WebSocket example. This change maintains consistency with other examples and aligns with the PR objectives.

examples/text-to-speech/rest/memory/hello_world/main.py (1)

31-31: Model updated correctly to aura-2-thalia-en

The text-to-speech model has been updated from "aura-asteria-en" to "aura-2-thalia-en" as intended by the PR objectives.

examples/text-to-speech/rest/file/async_hello_world/main.py (1)

29-29: Model updated to aura-2-thalia-en

The change correctly updates the text-to-speech model from "aura-asteria-en" to "aura-2-thalia-en", aligning with the PR objective to update examples to use the aura-2 model series.

examples/text-to-speech/rest/raw/hello_world_play/main.py (1)

67-67: Model updated to aura-2-thalia-en

The model parameter has been correctly updated to "aura-2-thalia-en" in this raw audio streaming example. This change is consistent with the PR's goal to update all examples to the newer model.

examples/text-to-speech/websocket/simple/main.py (1)

84-84: Model updated to aura-2-thalia-en in WebSocket example

The model parameter has been properly updated to "aura-2-thalia-en" in this WebSocket implementation using SpeakWSOptions. This change maintains consistency with the other updated examples.

examples/text-to-speech/websocket/async_simple/main.py (1)

93-93: Model updated to aura-2-thalia-en in async WebSocket example

The model parameter has been correctly updated to "aura-2-thalia-en" in this async WebSocket implementation. This change completes the consistent update across all example implementations.

examples/text-to-speech/rest/raw/async_hello_world/main.py (1)

33-33: Model correctly updated to aura-2-thalia-en.

The change appropriately updates the text-to-speech model from the previous "aura-asteria-en" to the newer "aura-2-thalia-en" model, aligning with the PR objective to update examples to use the aura-2 model series.

examples/text-to-speech/rest/file/woodchuck/main.py (1)

31-31: Model correctly updated to aura-2-thalia-en.

The change appropriately updates the text-to-speech model from the previous "aura-asteria-en" to the newer "aura-2-thalia-en" model, aligning with the PR objective to update examples to use the aura-2 model series.

examples/text-to-speech/rest/file/legacy_dict_hello_world/main.py (1)

29-29: Model correctly updated to aura-2-thalia-en.

The change appropriately updates the text-to-speech model from the previous "aura-asteria-en" to the newer "aura-2-thalia-en" model in the legacy dictionary-based configuration. This maintains consistency with the updates in other examples and aligns with the PR objective.

examples/text-to-speech/rest/memory/async_hello_world/main.py (1)

29-29: Model correctly updated to aura-2-thalia-en.

The change appropriately updates the text-to-speech model from the previous "aura-asteria-en" to the newer "aura-2-thalia-en" model, aligning with the PR objective to update examples to use the aura-2 model series.

✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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 generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @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.

Sorry, something went wrong.

@jpvajda jpvajda changed the title fix: updates examples to aura-2 fix: updates examples to aura-2 [WIP] Apr 7, 2025
@jpvajda jpvajda requested a review from naomi-lgbt April 7, 2025 23:53
naomi-lgbt
naomi-lgbt previously approved these changes Apr 8, 2025
@jpvajda jpvajda merged commit e48e415 into main Apr 14, 2025
3 checks passed
@jpvajda jpvajda deleted the fix/add-aura-2 branch April 14, 2025 22:00
@jpvajda jpvajda changed the title fix: updates examples to aura-2 [WIP] fix: updates examples to aura-2 Apr 14, 2025
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.

None yet

2 participants