Skip to content
This repository was 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

@drorm

Description

@drorm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.4Version 0.4

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions