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

Add Edge TTS #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add Edge TTS #22

wants to merge 1 commit into from

Conversation

S0L0GUY
Copy link
Owner

@S0L0GUY S0L0GUY commented Jan 24, 2025

Update nova.py to use Edge TTS instead of PYTTSX3 for text-to-speech.

  • Import Edge TTS

    • Replace pyttsx3 import with edge_tts.
  • Update play_tts function

    • Change play_tts function to be asynchronous.
    • Use edge_tts.Communicate for text-to-speech.
    • Remove pyttsx3 initialization and properties setting.
    • Save speech to file using edge_tts.
  • File handling

    • Ensure the file path is consistent.
    • Remove existing file before saving new speech output.

Update `nova.py` to use Edge TTS instead of PYTTSX3 for text-to-speech.

* **Import Edge TTS**
  - Replace `pyttsx3` import with `edge_tts`.

* **Update `play_tts` function**
  - Change `play_tts` function to be asynchronous.
  - Use `edge_tts.Communicate` for text-to-speech.
  - Remove `pyttsx3` initialization and properties setting.
  - Save speech to file using `edge_tts`.

* **File handling**
  - Ensure the file path is consistent.
  - Remove existing file before saving new speech output.
@S0L0GUY S0L0GUY linked an issue Jan 24, 2025 that may be closed by this pull request
@S0L0GUY S0L0GUY added the 🧪 Needs to be tested This has not been tested yet label Jan 24, 2025
@S0L0GUY S0L0GUY closed this Jan 26, 2025
@S0L0GUY S0L0GUY deleted the add-edge-tts branch January 26, 2025 21:18
@S0L0GUY S0L0GUY restored the add-edge-tts branch January 26, 2025 21:20
@S0L0GUY S0L0GUY reopened this Jan 26, 2025
@S0L0GUY S0L0GUY closed this Jan 27, 2025
@S0L0GUY S0L0GUY deleted the add-edge-tts branch January 27, 2025 16:52
@S0L0GUY S0L0GUY restored the add-edge-tts branch January 27, 2025 16:53
@S0L0GUY S0L0GUY reopened this Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧪 Needs to be tested This has not been tested yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Edge TTS
1 participant