Skip to content

Implementation for livekit-plugins-neuphonic (TTS provider)#1612

Merged
jayeshp19 merged 13 commits intolivekit:mainfrom
adnansiddiquei:adnansiddiquei/neuphonic-plugin
Mar 12, 2025
Merged

Implementation for livekit-plugins-neuphonic (TTS provider)#1612
jayeshp19 merged 13 commits intolivekit:mainfrom
adnansiddiquei:adnansiddiquei/neuphonic-plugin

Conversation

@adnansiddiquei
Copy link
Contributor

@adnansiddiquei adnansiddiquei commented Mar 6, 2025

This PR implements Neuphonic: https://neuphonic.com/ a TTS provider (I am an engineer at Neuphonic).

  • Added livekit-plugins/livekit-plugins-neuphonic
  • Added an example in examples/text-to-speech/neuphonic_tts.py
  • Updated README to add Neuphonic to the TTS table.
  • Update install_local.sh and install_plugins_editable.sh with Neuphonic.
  • Added Neuphonic to the tests in tests/test_tts.py.

This PR does not do any of the following:

  • Edit any of the github workflows
  • Add any changesets.

Let me know which of those I should edit, and any other things I need to do! Or any further information required.

I have tested this locally using https://docs.livekit.io/agents/quickstarts/voice-agent/ by swapping out Cartesia TTS for Neuphonic TTS and it works.

@changeset-bot
Copy link

changeset-bot bot commented Mar 6, 2025

⚠️ No Changeset found

Latest commit: 61cefc4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@CLAassistant
Copy link

CLAassistant commented Mar 6, 2025

CLA assistant check
All committers have signed the CLA.

@adnansiddiquei adnansiddiquei changed the title Implementation for livekit-plugins-neuphonic (TTS provider Implementation for livekit-plugins-neuphonic (TTS provider) Mar 6, 2025
@adnansiddiquei
Copy link
Contributor Author

adnansiddiquei commented Mar 11, 2025

All Neuphonic tests pass with pytest tests/test_tts.py

============================================================= test session starts =============================================================
platform darwin -- Python 3.12.4, pytest-8.3.4, pluggy-1.5.0
rootdir: /**/**/agents/tests
configfile: pytest.ini
plugins: asyncio-0.25.3, anyio-4.6.2.post1
asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope="function"
collected 4 items                                                                                                                             

tests/test_tts.py::test_synthesize[neuphonic] PASSED                                                                                    [ 25%]
tests/test_tts.py::test_stream[neuphonic] PASSED    

@davidzhao davidzhao requested a review from jayeshp19 March 12, 2025 08:00
adnansiddiquei and others added 2 commits March 12, 2025 09:56
…tion from jayeshp19.

Co-authored-by: Jayesh Parmar <60539217+jayeshp19@users.noreply.github.com>
…e websocket connection pooling and timeout. As per review by jayeshp19.
Copy link
Contributor

@jayeshp19 jayeshp19 left a comment

Choose a reason for hiding this comment

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

LGTM!

@adnansiddiquei
Copy link
Contributor Author

Awesome, thank you! Let me know if there is anything else required on my end to get this merged in and released!

@jayeshp19
Copy link
Contributor

Can we add update_options like this as well? I think it's ready to be merged after that

@adnansiddiquei
Copy link
Contributor Author

adnansiddiquei commented Mar 12, 2025

Added an update_options function. Let me know if you'd like any other changes!

adnansiddiquei and others added 2 commits March 12, 2025 11:43
…honic/tts.py

Co-authored-by: Jayesh Parmar <60539217+jayeshp19@users.noreply.github.com>
@jayeshp19 jayeshp19 merged commit 7ae39a2 into livekit:main Mar 12, 2025
4 checks passed
@adnansiddiquei
Copy link
Contributor Author

Anything you need from me to get this onto the docs?

@jayeshp19
Copy link
Contributor

Will add soon

davidzhao pushed a commit that referenced this pull request Mar 21, 2025
Co-authored-by: Jayesh Parmar <60539217+jayeshp19@users.noreply.github.com>
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.

3 participants