TikTokLive + OBS + ChatGPT

October 21, 2023, 23:49

parabolicpennies

I am using an rpi to make an Amazon alexa, seems like a pretty common project. That's all done, it works well. But during the process I had an idea. There is a TikTokLive Library, that you can use to scrape comments from tiktok. I have successfully been able to scrape comments from tiktok, send them to chatgpt, and get a response. There is a tool called the "OBS websocket" that you can use to control OBS remotely, or with python from what I can tell. I would like to flash the chatgpt response on OBS so I can live stream to tiktok and have live viewers interact with GPT with their comments. Hoping to do the same thing with Dall E Api's

parabolicpennies

I believe the answer to my problem is here but no idea how to use this

k9t33n

but where's your problem?

oops.se

As I read the problem. API's, programming and not enough programming experience, is that right? And I think you (<@1046635210206363648>) should state what programming language your struggling with. You mention "There is a TikTokLive Library" but no URL...

parabolicpennies

egg said someone might help me, i think he might as well

parabolicpennies

have half the code right just don't understand how to communicate with obs

oops.se

As I see it you just send json objects

parabolicpennies

I'll have to look into that then, thanks

oops.se

Nice, then your halfway there

parabolicpennies

indeed

oops.se

And you are familiar with Json ?

oops.se

or XML?

parabolicpennies

nope, very ambitious lol

oops.se

Its just a way of writing structured data.

parabolicpennies

like the comments , and chatgpt responses in this case ?

oops.se

Example:
{"widget": {
    "debug": "on",
    "window": {
        "title": "Sample Konfabulator Widget",
        "name": "main_window",
        "width": 500,
        "height": 500
    },
    "image": { 
        "src": "Images/Sun.png",
        "name": "sun1",
        "hOffset": 250,
        "vOffset": 250,
        "alignment": "center"
    }
}}

parabolicpennies

oh okay

parabolicpennies

looks like html

oops.se

Yes inded

oops.se

its just objects defined within {}

parabolicpennies

I haven't seen anyone who has pipelined tiktok & chatgpt like this

parabolicpennies

might become pretty common after I figure it out

parabolicpennies

when I'm finished I'd also like to do dall e, so people can ask it to paint images

parabolicpennies

seems interactive enough to catch on

oops.se

Ambitious, I like that

oops.se

Good luck, looks like your gonna succede

parabolicpennies

hope so! lol could take awhile

parabolicpennies

I mentioned previously I have a year of visual basic, which helps but not much

parabolicpennies

In highscool I made a windows application that was a board game called Mad Gab

parabolicpennies

randomly drew cards that I made in paint, had a timer, was cool

parabolicpennies

I got a c+ because I forgot to label each section of code with a description

parabolicpennies

made me mad lmao

oops.se

Visual Basic (for DOS) that was my language for a while in the pre Windows era 😉

oops.se

And that means you have basic programming skills, conditions, events and logic

oops.se

Then your just gona need to apply it to a new language (Python)

oops.se

And C+ sounds unfair

oops.se

But I agree as a former teacher and as a "developer" having to take over code bases without comments.

parabolicpennies

if I could go back, and take it more seriously I would. Was young and dumb always looking to be the center of attention

oops.se

I have experienced the same, and I agree I had a pupil that found a weakness and the IT wan 'ted to punish the pupil. But I got the CIO to see what's right and wrong, and it was the IT that had to do their homework and redesign parts of the IT environment.

parabolicpennies

my code I've got so far, it works. I partially understand how to use this streamer.bot application for obs a bit better. I just need to figure out whats the best way about flashing the gpt response on the obs source.

parabolicpennies

I think my next step is to save the chatgpt response as a text file

parabolicpennies

I think the trick is going to make the context of the text file appear one at a time on a timer

parabolicpennies

as obs calls upon the text file for the source workspace

parabolicpennies

seen a lot of them, not as cool as what I'm making

tyridge77

<:cool_think:832362297871564821>

tyridge77

I feel you though , yours sound pretty unique

tyridge77

Mine will be too in a completely different and kinda creepier way

parabolicpennies

The tiktok thing is kinda a separate project, would just be a cool thing to take to tiktok.