Command Line Interaction Using Text to Speech

Screen Recording 2026-02-02 at 9.23.10 PM.mov

Script and Code

>> System: I love you. But you fucked up. It should never have been that way. You were fucked up to her. You keep calling it miscommunication. It wasn’t. You knew what you were doing. You just didn’t think it would cost you. Say it. Say what you didn’t say then

>> User Input Response 1

>> System:

Okay. I’m bewildered right now — because that wasn’t the first thing you said. Hitting below the belt is disgusting. You knew exactly where to aim.")

>> User Input Response 2

>> System: That sounds practiced.

Command/Dialog

def say(something):
    command = f'python3 tts_labs.py "{something}"'
    os.system(command)

# -Dialog -

# start interaction
say("I love you. But you fucked up. It should never have been that way. You were fucked up to her. You keep calling it miscommunication. It wasn’t. You knew what you were doing. You just didn’t think it would cost you. Say it. Say what you didn’t say then")

# response 1
input(">>>: ")

# System interruption
say("Okay. I’m bewildered right now — because that wasn’t the first thing you said. Hitting below the belt is disgusting. You knew exactly where to aim.")

# response 2
input(">>>: ")

# System ends interaction
say("That sounds practiced.")
2

Voice Synthesis using Eleven Labs