Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Have the bot speak as text is generated: read each sentence. #7

Open
drorm opened this issue Feb 19, 2023 · 0 comments
Open

Have the bot speak as text is generated: read each sentence. #7

drorm opened this issue Feb 19, 2023 · 0 comments
Labels
0.4 Version 0.4

Comments

@drorm
Copy link
Owner

drorm commented Feb 19, 2023

It can get annoying to wait till the text is done generating to start the speech. It's better to one sentence at the time.
Since it's practically impossible to do good sentence detection programmatically using regex or similar techniques, the best solution is to have ChatGPT itself tell us where a sentence starts and ends.
Options:

  1. The easiest approach is to ask it to start each sentence on a new line.
  2. A more elegant solution is to ask it to introduce characters that are invisible to the user, but are detectable programmatically, such as 3 consecutive spaces. Since we're only dealing with text generated one entity, we don't need to worry too much about edge cases.
@drorm drorm added the 0.4 Version 0.4 label Feb 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
0.4 Version 0.4
Projects
None yet
Development

No branches or pull requests

1 participant