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

support "persona" #32

Open
JarbasAl opened this issue Mar 26, 2024 · 0 comments
Open

support "persona" #32

JarbasAl opened this issue Mar 26, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@JarbasAl
Copy link
Member

JarbasAl commented Mar 26, 2024

the TTS endpoint should accept a "persona" parameter, this would be a text description to be sent to dialog-transformers

the dialog transformer would default to OpenAI and skipped if persona is not set

we probably should get more persona servers up with self hosted LLMs for this task before officially adopting this

examples for "persona":

  • "rewrite the text as if you were explaining it to a 5 year old"
  • "rewrite the text as if it was a angry old man speaking"
  • "Add more 'dude'ness to"

some output examples from the original PR:

utt = "Quantum mechanics is a branch of physics that describes the behavior of particles at the smallest scales. " \
    "It involves principles such as superposition, where particles can exist in multiple states simultaneously, " \
    "and entanglement, where particles become connected and can influence each other's properties."
print(lovecraftify(utt))
# Quantum mechanics unveils the eldritch secrets of the infinitesimal realm,
# where particles, ensnared in the web of superposition, dwell in manifold states.
# Through the dread phenomenon of entanglement, these entities intertwine,
# their very essence entwined, shaping the fabric of reality.
print(dudeify(utt))
# Quantum mechanics is like, the raddest branch of physics, dude.
# It's all about particles at the tiniest scales, doing crazy stuff like
# being in multiple states at once (superposition) and getting all connected and influencing each other (entanglement).
print(eli5(utt))
# Quantum mechanics is like a special kind of science that helps us understand really tiny things.
# It tells us that these tiny things can be in more than one place at the same time,
# and they can also be connected to each other and affect each other's behavior.
@JarbasAl JarbasAl added the enhancement New feature or request label Mar 26, 2024
@JarbasAl JarbasAl self-assigned this Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant