Skip to content

Latest commit

 

History

History
79 lines (67 loc) · 2.06 KB

README.md

File metadata and controls

79 lines (67 loc) · 2.06 KB

Joke teller

Goal

Get a joke from an API and provide it to a text to speech API that will tell us.

Text-To-Speech API

Using Voice RSS API

Create an account on Voice RSS to get an API Key: 1404...0768

The uses of an API that exposed the key is not secured!

Using browser embedded Speech Synthesiser

Joke API

Error response

{
    "error": true,
    "internalError": false,
    "code": 106,
    "message": "No matching joke found",
    "causedBy": [
        "No jokes were found that match your provided filter(s)."
    ],
    "additionalInfo": "Error while finalizing joke filtering: No jokes were found that match your provided filter(s).",
    "timestamp": 1704744844945
}

Single response

{
    "error": false,
    "category": "Programming",
    "type": "single",
    "joke": "Java is like Alzheimer's, it starts off slow, but eventually, your memory is gone.",
    "flags": {
        "nsfw": false,
        "religious": false,
        "political": false,
        "racist": false,
        "sexist": false,
        "explicit": false
    },
    "id": 27,
    "safe": false,
    "lang": "en"
}

Two part response

{
    "error": false,
    "category": "Programming",
    "type": "twopart",
    "setup": ".NET developers are picky when it comes to food.",
    "delivery": "They only like chicken NuGet.",
    "flags": {
        "nsfw": false,
        "religious": false,
        "political": false,
        "racist": false,
        "sexist": false,
        "explicit": false
    },
    "id": 49,
    "safe": true,
    "lang": "en"
}