raspberry Pi virtual assistant

January 7, 2024, 06:38

gumtreelad

I’m looking to make a virtual assistant ran through chat gpt using the raspberry pi 4. I have virtually 0 experience with the software so I want to learn why I’m doing things, not just how. Any help is appreciated.

Pantner

how granular do you want to go? If i say "here's a github project to do this, with install instructions" is that what you want? Or you want to actually make something 'front scratch'?

gumtreelad

“From scratch” as much as possible would be preferred. I have very limited experience with what I’m doing

gumtreelad

Well I suppose

gumtreelad

How much harder is doing it from scratch? Is it going to be like an absurd amount of coding and software that I am in no way going to understand

k9t33n

no not really

k9t33n

you just need 3 main concepts. the ai to detect what your saying and turn it into text, the chatgpt api and then an ai to speak out what chatgpts response is

k9t33n

we can do that very easily within python, i can help you

k9t33n

if you want to start from scratch i would first go reseaching for speach to text apis, just ask if you need help with this

gumtreelad

I can do that once I know what the words mean

gumtreelad

The only thing I’m not 100% on is what’s an api

k9t33n

an API is a way of interacting with a service from the code

k9t33n

it links that bit of code to your account. usually so they can limit you on how much you use it

k9t33n

Because they have to make money

k9t33n

for example you use open air api to use chatgpt. that way they can know how much you've used it and decide how much to charge you

gumtreelad

Okay so to clarify the basic components would be: -The API -The actual Chat GPT AI -The text to speech AI -And then whatever software will be needed to interface with the mic and speakers

k9t33n

yes I mean the pi kinda has that last part sorted so I think that'd be the easiest part

gumtreelad

Would I be able to use a headset for testing purposes until I got the more permanent ones

gumtreelad

And also is there a certain version of noobs I’m gonna want to use, I know that some software like omxplayer have problems with newer versions

.buoyancy

luckily the chatgpt api is easy af

gumtreelad

That’s what I’m hoping for because I have virtually 0 clue what I’m doing, I’m gonna need like a literal step by step

gumtreelad

Okay so what is the very very first step

gumtreelad

Would it be getting the right software on my sd card

k9t33n

yeah probably

.buoyancy

you use terminal or gui?

.buoyancy

i think best option here for you as a beginner is to first develop the software on your pc and then use it in your raspberry, i guess you would use some interpreted lang like python, so the change of architecture should not be a problem

k9t33n

I suggest you use gui here

k9t33n

and yea develop the programs on your pc and send them to the pi

gumtreelad

Okay so firstly what does any of that mean

gumtreelad

Idk what terminal or gui means

gumtreelad

Second what program would I use to develop this on my pc

k9t33n

ok terminal is something you can use to control your pi

gumtreelad

Like the black text box in the top left when your on the pi desktop

k9t33n

you use it by typing etherything out. and it does it for and retrieves the information. but you can't see anything so it's like your blind and telling your friend what to do

k9t33n

yes exactly that

gumtreelad

Ok I’m tracking

k9t33n

some people use the pi only from that. they never see like the browser button or anything they just tell the terminal to click it for them. this saves resources but it's much harder for beginners

gumtreelad

So I’m gonna use something similar on my pc to write the code and then basically just send it over to the pi and since the framework is pretty similar it shouldn’t be a huge change for the pi

k9t33n

so a gui is the thing you can see, so you click the browser button yourself

k9t33n

yes python is the same in both

k9t33n

you could use thonny on both

gumtreelad

I think that’s what I was doing at first like actually typing the git hub urls and opening folders and doing installs with commands

k9t33n

thonny is a python editor for beginners

k9t33n

yeah

gumtreelad

Oh so get thonny on my pc to write the code there?

k9t33n

yeah

k9t33n

and it's already installed on your pi

k9t33n

do you know about python at all?

gumtreelad

Very very little

k9t33n

ok I would suggest taking some time learning it a bit more otherwise your gonna have no clue what's happening

gumtreelad

So I’m just gonna put the pi to the side for now and just work off my computer

k9t33n

yup

gumtreelad

Okay

gumtreelad

What type of things should I learn

k9t33n

I can give you some tutorials on python if you want?

gumtreelad

I know like basic logic gates like if/and lines and some stuff like that

k9t33n

you need to understand python and apis well come with that

k9t33n

ok good. you still need a little more

k9t33n

but DW python is actually really easy once you get into it

k9t33n

you want me to link a tutorial now?

gumtreelad

Stuff like libraries and stuff I understand too

gumtreelad

Yeah sure

k9t33n

oh you've basically got it.

gumtreelad

There was this website I was using to learn that’s basically like learning python to solve like retro game style probelms and I’m trying to find it to refresh myself with the code but I can’t remember what it’s called

k9t33n

do this first, it should be a breeze for you but you will need it https://www.kaggle.com/learn/intro-to-programming

gumtreelad

Okay cool. Give me a few and I’ll get back to you after that

k9t33n

yeah, then once youve done that. https://www.kaggle.com/learn/python you can go through this. but don't worry I don't expect you to do all this in a day this could take you a week if needs be

k9t33n

but it's certainly a great place to start

gumtreelad

Okay cool, let me take a look at the first one

.buoyancy

so gui is graphical user interface, like all the user interface you got on windows, everything is visual and rendered, and a terminal is cli, command line interface, everything is based off commands and text, all there is are characters

.buoyancy

if you want to do something 99% of the time you would have to enter a command

.buoyancy

instead of clicking something as you would on a gui

gumtreelad

Okay yeah makes total sense I’m tracking

gumtreelad

<@1071178789939331253> I still get the premises but I’m going through all the lessons thoroughly just to get a solid refresher

gumtreelad

One thing that’s tripping me up in variables. Can I not define 1 variable with another?

k9t33n

what do you mean?

k9t33n

like this
py
var_1 = 1
var_2 = var_1
?

gumtreelad

For example: Births_per_minute = 250 Births_per_hour = births_per_minute * 60

k9t33n

yes you can

k9t33n

are you getting an error?

gumtreelad

The terminal keeps saying the births_per_minute variable isn’t defined but my first line of code is defining it

gumtreelad

Yes

k9t33n

you might have misspelled it

gumtreelad

I got it figured out

gumtreelad

Small syntax error

k9t33n

yup

gumtreelad

How would I write a more complex arithmetic question to define a variable

gumtreelad

This seems to be throwing up a flag

gumtreelad

Wait I think I got that covered by changing it from // to just /

gumtreelad

Now how can I make the resulting answer round to the nearest whole nunber

.buoyancy

you learning programming rn?

gumtreelad

I am

.buoyancy

you learn fast ngl

gumtreelad

I have a small bit of experience

gumtreelad

I should know this stuff

gumtreelad

But I do tend to pick things up

.buoyancy

dont know python, is too complicated for me

.buoyancy

i just use rust

gumtreelad

What’s rust?

.buoyancy

a compilled lang, it was just a joke

k9t33n

another coding launguage, mostly based of python

k9t33n

i never got to like it, python better anyway

gumtreelad

Hey <@1071178789939331253> question

.buoyancy

wait you saying it unironically?

gumtreelad

How can I make the result of a arithmetic questions round to the nearest whole number

.buoyancy

if you got 1.5 what would you expect it to round to?

.buoyancy

2 or 1?

gumtreelad

Well I have 38.38383838383838 repeating and I just want it to round to the nearest whole number for the sake of not needing a crazy high accuracy for the exercise

k9t33n

no it wasnt a joke or anything

k9t33n

numb = round(numb)

.buoyancy

its really far from python, like really really far

.buoyancy

not based off it or anything like that

gumtreelad

I’ve tried that but what should replace “numb” the variable I’m trying to round?

.buoyancy

yes

k9t33n

oh i didnt know, can you show me some code as an example?

gumtreelad

Ohhhhhhjh

gumtreelad

That makes way more sense

.buoyancy

you will see in the near future that a programer is just a expert internet searcher, nobody remembers that stuff

gumtreelad

I was thinking it was it’s own line not just a part of the equation

k9t33n

google is your best freind, you will learn that some day

gumtreelad

<@1071178789939331253> this website you sent me is confusing

gumtreelad

It’s asking me to print a fraction of something so I made it spit out the percentage values and it’s saying that’s incorrect. Is there a better way to do it

k9t33n

a fraction is not percentage values

k9t33n

i can send a less confusing tutorial, that one is slightly confusing on how it works ik

gumtreelad

No I mean I’m getting the instruction I just don’t know the premise of what their asking

.buoyancy

sure
rust
use dialoguer::Select; //dialoguer:Select | this let us print options that the user chooses like "buttons", comes handy in this type of program
use std::error::Error;
use std::io; //standard::input/output | AFAIK this library type let us capture input from the terminal //standard::error::Error | for error handling

fn main() -> Result<(), Box<dyn Error>> {
    // good execution and error handling (Result expect () if everything good and everything else as error)
    let selection = Select::new()
        .item("Fahrenheit to Celsius")
        .item("Celsius to Fahrenheit")
        .interact()?; //everything else

    match selection {
        0 => convertor(false, "Celsius"),
        1 => convertor(true, "Fahrenheit"),
        _ => return Err("Invalid selection".into()), // everything else returns as error
    };

    Ok(())
}
fn convertor(choice: bool, unit: &str) {
    loop {
        println!("Input the number to convert");

        let mut number = String::new(); // we do not know the value yet

        io::stdin()
            .read_line(&mut number) // mutable reference
            .expect("Failed to read line");

        let mut number: f32 = match number.trim().parse() {
            Ok(num) => num,
            Err(_) => continue, // this is why we are using a loop, continue skips into the next iteration
        }; // i could have used promptly :b | update, i do not know how to use promptly
        match choice {
            false => number = (number - 32.0)  5.0 / 9.0, //f to c
            true => number = number  9.0 / 5.0 + 32.0,    // c to f
        }
        println!("The result is {number:.2}°{unit}"); // .2 in number means 2 decimals after point
        break;
    }
}

k9t33n

because it runs in an actual enviroment, i prefer it this way because you can do what you want

gumtreelad

How do I make this function give a fraction instead of a percentage

k9t33n

can you take a screenshot for me?

k9t33n

oh it kinda looks more like js or c# to me

gumtreelad

Of my solution or of the problem

k9t33n

of the problem

.buoyancy

pretty far from those too, its more like a c / c++ / haskell

gumtreelad



gumtreelad

Well there’s both

k9t33n

ive never got into c at all so i wouldnt know

k9t33n

and never heard of haskell

.buoyancy

purely functional lang, hard af

k9t33n

ok this will take a sec im rusty

gumtreelad

Haha no prob

gumtreelad

I know this probably isn’t functional to what I’m doing but I just want to try to understand the basis of every step in the process

.buoyancy

i think its not asking for percentages

k9t33n

have you filled this in?

.buoyancy

as said, its asking about fractions, numbers between 0 an 1

.buoyancy

remove the *100

gumtreelad

No it’s not that’s the problem lol, that’s what I need to learn how to do

k9t33n

yes

.buoyancy

exactly, remove the * 100

.buoyancy

and thats it

k9t33n

did you put the * theyre?

gumtreelad

Oh yeah that did it

k9t33n

yup

k9t33n

btw they also give you hints if you need it

gumtreelad

Yeah cuz I wanted my function to vice me a whole number percentage value

gumtreelad

Yeah Ik I’m just trying to do it without those

k9t33n

but they dont need a percentage, they need a fraction. i fraction by definition is just a number devided by a number so thats all you need to do

k9t33n

dw theyres no shame in using hints if you need it. like dont always use them but if you need it use them because this is for learning, not a streak of not using hints lol

gumtreelad

Yeah but in the real world there’s no hints and I tend to start relying on the hints and then being screwed when I need to type something not in a tutorial

k9t33n

lol

.buoyancy

its funny how they use stdout to read the values instead of using a function, pretty clever.

k9t33n

yeah

.buoyancy

dont overthink it

k9t33n

yeah live life how you want to

.buoyancy

you will then get used to not having hints, but hints at the start can be good

k9t33n

i mean dont be lazy but rememeber you only have one life, live it how you want

.buoyancy

many people started learning how to ride the bycicle using those help wheels. pilots cannot start learning without helps and hints

gumtreelad

Oh hell guys now we’re getting to some more complicated functions

gumtreelad

Now the hints are gonna start comin lol

.buoyancy

good

k9t33n

yup

gumtreelad

What concepts should I make sure I understand before I am good to start on the virtual assistant project

k9t33n

if you finish that course and learn about modules and apis your good

.buoyancy

most probably yes

gumtreelad

Ok cool

.buoyancy

there are videos about it, about making a chatgpt chatbot yourself using the api

.buoyancy

you can follow that then if you get lost

k9t33n

once you know whats happening i can help you through all of, ive already made some code that does this so you decide how much i want to help you

gumtreelad

Oooh ok on makes sense

gumtreelad

I’m making good headway, should be done with those lessons in about 30-45 mins

k9t33n

great

gumtreelad

Okay I’m about done

gumtreelad

Where should I start

k9t33n

with the second one too?

gumtreelad

No just the first, I’ll start the second one now

k9t33n

ok great

gumtreelad

I think I figured this out

gumtreelad

But

gumtreelad

Wait nvm yeah I answer my own questions

gumtreelad

What would be way to make 2 variables switch values

gumtreelad

Like if a=2 and b=1 how can I switch them

gumtreelad

There’s a command for it but I can think of it

k9t33n

I don't actually know

gumtreelad

That was markedly simple lol

gumtreelad

I just put a, b = b, a

k9t33n

>>> Using tuple unpacking: Python allows you to swap the values of two variables with a single line of code using tuple unpacking. This method is concise, easy to understand, and is especially well-suited for swapping two variables.
py
   a = 5
   b = 10
   a, b = b, a
   print("a:", a)
   print("b:", b)

k9t33n

oh you already got it

gumtreelad

Yeah lol I guess you can also do it with a temp value but that seems so much harder

k9t33n

nah, I mean it's a slight waste of space but that's about it

gumtreelad

Hey <@1071178789939331253> and <@1005288119807004822> did I over complicate this lol

gumtreelad


gumtreelad


gumtreelad

And if not I’m confused on what this error is meaning

gumtreelad

I figured it out

gumtreelad

<@1071178789939331253> finished with that second set of lessons

gumtreelad

Where we go from here

k9t33n

ok just do some research on speach to text apis

k9t33n

and if you can get some working code from it

gumtreelad

If I wanted to make that myself Ide have to get into machine learning and all that wouldn’t I

gumtreelad

Oh yeah hell no I’ll definitely be finding an api that’s super complicated

gumtreelad

How’s that one sound?

k9t33n

yeah but even I can't do that yet

k9t33n

this looks great

gumtreelad

Awesome

gumtreelad

So let’s start from scratch

gumtreelad

I need to create a new Python project in Thonny

k9t33n

yes

k9t33n

don't do what the GitHub says yet I want to look at the code

gumtreelad

Okay

gumtreelad

Is that’s gonna be the first thing at the top of the new Python project tho?

k9t33n

ok go into thonny and create a new file. name it virtual assistant or something

k9t33n

yup but we're doing it differently because we need to control it ourselves

k9t33n

py
import speech_recognition as sr

recognizer = sr.Recognizer()

with sr.Microphone() as source:
    print("Adjusting noise ")
    recognizer.adjust_for_ambient_noise(source, duration=1)
    print("Recording for 10 seconds")
    recorded_audio = recognizer.listen(source, timeout=10)
    print("Done recording")

try:
    print("Recognizing the text")
    text = recognizer.recognize_google(
            recorded_audio, 
            language="en-US"
        )

    print("Decoded Text : {}".format(text))

except Exception as ex:

    print(ex)


sr.Microphone.list_microphone_names() 
paste this into thonny and yk talk and see if it works

gumtreelad

Okay let’s see standby

gumtreelad

heres the error I got

gumtreelad

> %Run -c $EDITOR_CONTENT > Traceback (most recent call last): > File "<string>", line 1, in <module> > ModuleNotFoundError: No module named 'speech_recognition' > >>>

gumtreelad

do I need to import the git hub link first

gumtreelad

k9t33n

oh yeah run pip install speech_recognition in the terminal

k9t33n

you can get this by clicking on tools and then terminal

gumtreelad

ERROR: Could not find a version that satisfies the requirement speech_recognition (from versions: none) ERROR: No matching distribution found for speech_recognition [notice] A new release of pip is available: 23.0.1 -> 23.3.2 [notice] To update, run: python.exe -m pip install --upgrade pip

k9t33n

try cloning the repo then

gumtreelad

run that command at the bottom there?

gumtreelad

how do I do that

gumtreelad

'git' is not recognized as an internal or external command, operable program or batch file.

k9t33n

then run cd Python-Speech-Recognition-

k9t33n

hmm

gumtreelad

thats the error it threw up when I did git clone https://github.com/Kalebu/Python-Speech-Recognition-

k9t33n

you might need to find a new ai for this

k9t33n

let me look for some for you

gumtreelad

okay, ill look too

gumtreelad

<@1071178789939331253>

gumtreelad

I mean thats pretty much the entire thing done ritght there lol

k9t33n

yeah but that what we're trying to avoid right?

gumtreelad

yeah, I just didnt know if we wanted to take the speech recogniton part from that cuz idk if thats linked to chat gpt

k9t33n

oh I found the reason the other one didn't work

k9t33n

try running pip install SpeechRecognition in the terminal again and run the script I said to put into thonny again

gumtreelad

whatre we lookin at

gumtreelad

roger

k9t33n

the original GitHub repo

gumtreelad

> %Run -c $EDITOR_CONTENT > Traceback (most recent call last): > File "C:\Users\Logan\AppData\Local\Programs\Thonny\lib\site-packages\speech_recognition\__init__.py", line 108, in get_pyaudio > import pyaudio > ModuleNotFoundError: No module named 'pyaudio' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "<string>", line 7, in <module> > File "C:\Users\Logan\AppData\Local\Programs\Thonny\lib\site-packages\speech_recognition\__init__.py", line 80, in __init__ > self.pyaudio_module = self.get_pyaudio() > File "C:\Users\Logan\AppData\Local\Programs\Thonny\lib\site-packages\speech_recognition\__init__.py", line 110, in get_pyaudio > raise AttributeError("Could not find PyAudio; check installation") > AttributeError: Could not find PyAudio; check installation > >>>

gumtreelad

thats the error we got now

gumtreelad

it worked fine in the terminal

gumtreelad

but script didnt run though

gumtreelad

I need to install a program called PyAudio?

k9t33n

try running pip install PyAudio and adding import PyAudio at the start of the script

k9t33n

after this I really got to get to sleep so I'll have to help you in the morning

gumtreelad

where do I put it in the script

k9t33n

at the start

k9t33n

oh wait I made a mistake

gumtreelad

Traceback (most recent call last): File "<string>", line 1 pip install PyAudio ^^^^^^^ SyntaxError: invalid syntax

gumtreelad

yeah somethin aint right

k9t33n

change it accordingly

k9t33n

sorry I'm extremely rusty

k9t33n

too busy with Linux stuff to do much python anymore

gumtreelad

Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'PyAudio'

gumtreelad

I just installed the module tho

k9t33n

when you installed it have any errors?

gumtreelad

nope

gumtreelad

went just fine

k9t33n

interesting

gumtreelad

it said successfully installed and everything

k9t33n

can I help you fix it in the morning it's half 1 am for me

gumtreelad

yeah of course

gumtreelad

have a good night, I appreciate you

k9t33n

aw thanks that made me smile

k9t33n

I appreciate you being one of the easiest people here to help

gumtreelad

haha I feel like im being a pain

k9t33n

no your not dw

shortcirkuitz

Here you go, it's all open source so if you want to build from scratch you can. https://openvoiceos.org/

shortcirkuitz

And yes it can run headless on a raspberry pi. Been doing a lot of work with their team lately

gumtreelad

Hey thanks for the link

gumtreelad

I’m not sure I understand any of this in the slightest but if your here and willing to explain I’m here to listen

shortcirkuitz

What is it that you're not understanding.

gumtreelad

I know next to nothing about any of those terms

gumtreelad

Like Ide need a step by step on how to actually implement that into any code or into the pi or anything

shortcirkuitz

I can send you the image I am using, you just burn it to the sd, plug in a monitor and keyboard into the pi and do what the voice says

k9t33n

looks great. thanks you

gumtreelad

Oh cool, that makes it easy

gumtreelad

Do you want to use that link or continue with the one we where doing before

k9t33n

depends, this is probably better if you want the easy and better sollution

k9t33n

i dont doubt that will be 10x easier and will be a lot better than i could do especially the display, but it is the easy way so it wont be challenging at all and you might not learn as much

gumtreelad

Is this one going to have all the functionality I want?

k9t33n

should do

k9t33n

apparently it can even use that display for the animation and stuff you want

gumtreelad

And he said it’s open source so does that mean I can go back and change or add code whenever I want

gumtreelad

I know Ide need a lot more experience but eventually Ide like to be able to go back and add a function to allow it to interface with my pc and other tech at my setup

k9t33n

yup, though i need to check what lauguage, one sec

k9t33n

great

gumtreelad

Oh okay awesome

k9t33n

oh cool they seem to have pluggins too

gumtreelad

Oh awesome

gumtreelad

How do I find the download link for the img

k9t33n

https://downloads.openvoiceos.org/images/raspbian/ this is a bit confusing but id select "latest"-->"ovos-raspbian.zip"

gumtreelad

Ok, let me try burning that to this sd and see if that does much

k9t33n

then download it to the sd card

gumtreelad

👍

gumtreelad

So I burned it and put it into the pi and it started up and ran a bunch of commands and then just shut off and a red light came on on the side of the pi

k9t33n

wait what do you mean by burned?

gumtreelad

Like I copied it onto the sD card with the imager

k9t33n

the raspi imager?

gumtreelad

Yes

k9t33n

you dont need to do that

k9t33n

apart from just formatting the card with the imager all you need to do is click on that website, click on what i told you to and download it to the sd card

k9t33n

then plug it into your raspberry pi

gumtreelad

Okay let’s try that then

k9t33n

reformat the sd card though by selecting "erase" at the bottom of the imager

gumtreelad

Yup did that

gumtreelad

But now it’s formatted as fat32 isn’t it

k9t33n

ok good then download and plug it in

gumtreelad

Just download the zip file straight onto the sD card?

gumtreelad

Or extract it to there

k9t33n

yes extract it to there

gumtreelad

Ok

gumtreelad

Okay we’re copying now

gumtreelad

This is all that shows up and won’t change to anything else

k9t33n

hmm, <@625486818321760256> can you send over your image?

k9t33n

also how is that display connected? via a thin wire that connects to a thing on the pi or through the gpio?

gumtreelad

It’s a micro hdmi to hdmi

k9t33n

ok good

k9t33n

im waiting on him to reply to us now then

gumtreelad

Yeah cool, I’m just gonna do a little more research till then

oops.se

PS. The QR code on the boot screen is a feature introduced 3 years ago to make troubleshooting easier

gumtreelad

Do you have any experience with the image?

gumtreelad

The QR code didn’t yield much

k9t33n

anything at all?

gumtreelad

Not much help, it might be more useful to you

k9t33n

i thought it just linked to imager download page when an image isnt detected

k9t33n

what does it come up with?

gumtreelad

Give me 1 sec, I have to set everything back up

k9t33n

ok

gumtreelad


gumtreelad

It just links this

gumtreelad

Saying I don’t have an OS

k9t33n

yeah thought so

gumtreelad

Do you want to try working on that other bit of code in the meantime

gumtreelad

From yesterday

k9t33n

oh yeah

k9t33n

try it, we might have to record a wav file and use it that way

k9t33n

not preferable but its a option too

gumtreelad

That’s our current error code

k9t33n

go into the tools section and select manage packages

gumtreelad


gumtreelad

Yeah I tried that last night

gumtreelad

But it says PyAudio is installed

k9t33n

it is a module, atleest pypi says so

k9t33n

on there?

k9t33n

ok very weird

k9t33n

ok highlight the name and paste it in so we know we havent spelt it incorrectly

gumtreelad

still same

gumtreelad

Does it need an update possibly?

k9t33n

i dont think so

k9t33n

in bit when i can ill find some code so you can use wav files instead

k9t33n

some code i know works

gumtreelad

Ok

gumtreelad

Do you reckon we could try this then?

gumtreelad

As a bae

gumtreelad

Base*

shortcirkuitz

Yes, one moment

shortcirkuitz

Bare in Mind I customized my image heavily

k9t33n

how heavily and what have you changed?

k9t33n

this is it
py
import sounddevice as sd
from scipy.io.wavfile import write
import assemblyai as aai
from text_to_speech import save
from ctransformers import AutoModelForCausalLM

# Sample rate
fs = 44100  # Sample rate 
seconds = 1  # Duration of recording

# Replace with your API token
aai.settings.api_key = f"c9be33bfb60b41fbaebb13bd8168a639"

# URL of the file to transcribe
FILE_URL = r"C:\file_path\output.wav"

shortcirkuitz

Boot screen, making a bunch of private skills amongst other things

shortcirkuitz

my version is super privatized

k9t33n

can you send us a base image you know works?

gumtreelad

Would be very much appreciated to get a good starting point

shortcirkuitz

Of course

k9t33n

oh cool, might think about this myself. did you have to code this or install pluggins for it to work?

k9t33n

like code the mods

shortcirkuitz

Code, I am working in partnership with their team to pull this off

k9t33n

ok <@1182277325463765042> click the one that says gui

k9t33n

great. i might do this myself

gumtreelad

Ok cool, give me just a few mins

k9t33n

sure

k9t33n

remember to extract it

shortcirkuitz

Here's a good template skill

shortcirkuitz

BTW i would recommend using the imager to set wifi, username and password

k9t33n

i couldnt find out, is etherything in python or is it a mix?

shortcirkuitz

Python

k9t33n

oh wait is this not a full image by its self?

shortcirkuitz

It's very complex to build a custom skill

k9t33n

thanks for the headsup

shortcirkuitz

it has a way to set up wifi if you listen to the voice

shortcirkuitz

assuming you have a speaker

gumtreelad

Does it work with a headset? Like a combo “speaker” and mic?

shortcirkuitz

That hasn't been tested yet to my knowledge

k9t33n

i dont think the pi can do it

gumtreelad

Oh ok

gumtreelad

Might be a problem then, I’m gonna need to fine a way to get a speaker and a mic

shortcirkuitz

Usb mic and aux speaker

gumtreelad

Yeah I just don’t have either, I’ll have to go pick some up

k9t33n

god this wouldve made me trying to make it so much simpler

k9t33n

im still probs gonna develop my own for fun but this is cool

shortcirkuitz

It'll have very little functionality unless you know a lot about programming

k9t33n

hmm

k9t33n

its just gonna let me be able to talk to chatgpt

k9t33n

or actually my own model

shortcirkuitz

You can make it do what ever you want if you know enough python

k9t33n

yup

shortcirkuitz


gumtreelad

<@625486818321760256> can you make it interface with your pc? Open and close apps and stuff like like?

shortcirkuitz

You could if you wanted to but let's not try and fly before we can walk.

gumtreelad

Yeah for sure just curious

shortcirkuitz

Get it set up yet?

oops.se

can you rotate the camera 90 degrees when taking the photo ?

shortcirkuitz

For what purpose, that is simply the login shell banner

k9t33n

he likes landscap cropped photos, even better if its simply a screenshot

oops.se

That question can only be answered with, why photo a landscape with the camera in portrait

gumtreelad

I’m trying now

gumtreelad

It had an error being burnt to the sd card

shortcirkuitz

What was the error

shortcirkuitz

We need logs or a screenshot or something

gumtreelad

I’m out for the night, but I will send a screenshot whenever I’m home

shortcirkuitz

ok...

k9t33n

oh actually. you connect it to the internet either through the actual desktop/commands if you have a monitor or you would put the WiFi details in the imager usually

gumtreelad

Just because if the wife provider I use I have to register each device with the MAC address before it’ll connect to the wifi

k9t33n

oh weird

k9t33n

do you have a display?

oops.se

Type the command ip a and then the MAC is the hex code after link/ether

shortcirkuitz

I thought I told you to do that

shortcirkuitz

I normally use the imager

k9t33n

yeah

k9t33n

me too

k9t33n

I mean you need to use headless which is what I use

shortcirkuitz

Exactly