aitok-ai / LibreChat

Enhanced ChatGPT Clone: Features OpenAI, Bing, PaLM 2, AI model switching, message search, langchain, Plugins, Multi-User System, Presets, completely open-source for self-hosting. More features in development
https://discord.gg/CEe6vDg9Ky
MIT License
3 stars 1 forks source link

[Speak text] Play/Pause the text speech #164

Closed olushuo closed 10 months ago

olushuo commented 11 months ago

Pull Request Template

⚠️ Before Submitting a PR, read the Contributing Docs in full!

Summary

Play back the message text

Change Type

Please delete any irrelevant options.

Testing

  1. Click on the play button to play back the text(the button turns into a pause button)
  2. Click on the pause button to pause (the button turns into a play button)
  3. Click on the play button to resume (the button turns into a pause button)
  4. Wait until it finishes speaking, the button should turn into a play button again
  5. Click on another message's play button while it is speaking, the previous speech should be cancelled and it will start a new speech.
  6. Refresh the webpage while it is speaking, the current speech should be cancelled and the play/pause button will turn into a play button
  7. I have tested chrome/edge/vivaldi/firefox

    Test Configuration:

Checklist

aws-amplify-ap-east-1[bot] commented 11 months ago

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-164.d35bsvaicfsnob.amplifyapp.com