Skip to content

fix: update outdated class names and imports in README (fixes #46)#55

Open
aarushisingh04 wants to merge 1 commit intosmallest-inc:mainfrom
aarushisingh04:fix/issue-46-texttoaudiostream-import
Open

fix: update outdated class names and imports in README (fixes #46)#55
aarushisingh04 wants to merge 1 commit intosmallest-inc:mainfrom
aarushisingh04:fix/issue-46-texttoaudiostream-import

Conversation

@aarushisingh04
Copy link

TextToAudioStream was renamed to WavesStreamingTTS and Smallest / AsyncSmallest were renamed to WavesClient / AsyncWavesClient but the README still referenced the old names and from smallest import ... paths. this caused ImportError for users following the documentation (#46).

changes

README.md

  • updated all imports from:

    from smallest import ...

    to:

    from smallestai.waves import ...
  • replaced:

    • TextToAudioStreamWavesStreamingTTS
    • SmallestWavesClient
    • AsyncSmallestAsyncWavesClient
  • rewrote LLM-to-Speech examples to use the current WavesStreamingTTS + TTSConfig constructor.

smallestai/waves/__init__.py

  • added a backwards-compatible alias:

    TextToAudioStream = WavesStreamingTTS

    so existing user code continues to work.

testing

the existing test suite (tests/waves/test_streaming_ws.py) tests WavesStreamingTTS directly and requires live API keys, so no existing tests are affected by this change.

closes #46

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.

ImportError: cannot import name 'TextToAudioStream' from 'smallestai.waves'

1 participant