Skip to content

HTML Coded Responses.  #2

@lessloveless

Description

@lessloveless

Hey Idk how long its been since anybody worked on this but..

Iris' outputs come out from the standalone turning apostrophes into "'".

I fixed this by adding

"import html"

and correcting the section "# Print and say the reply from the model" to the below.

EDIT: (The issue came back, perm fixed below)

def output_ai_reply(reply):
    decoded_reply = html.unescape(reply)
    decoded_again = decoded_reply.replace("'", "'")
    decoded_final = decoded_again.replace("'", "'")
    print("Iris:", decoded_final)
    tts_inst.speak(decoded_final)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions