jtoy / replicantlife

replicantlife is a framework for generative agents that can be used in a simulation engine or standalone. Agents are powered with metacognition modules that allow that to learn and adjust their strategy over time.
https://replicantlife.com
27 stars 7 forks source link

added audio play #33

Closed chiefeu closed 5 months ago

chiefeu commented 5 months ago

we updated the commit.

we generate audio in rails using elevenlabs text-to-speech.

we fetch the audio in our web ui with 4 params passed on our rails endpoint. rails will use that to get the corresponding content of the talk/thought step.

we play the audio if the audio check box is ticked. otherwise, we do not.

we show the audio check box when NEXT_PUBLIC_ALLOW_AUDIO is true.