GPT-4o API: Create Your Own Talking and Listening AI Girlfriend

  Рет қаралды 25,229

AI FOR DEVS

AI FOR DEVS

Күн бұрын

Пікірлер: 59
@MatthewChowns
@MatthewChowns 7 ай бұрын
Just FYI, they have been consistently using a lower case o in the model name so it's clear it's the letter. Otherwise it looks like it's GPT forty or 4.0, which aren't right.
@ai-for-devs
@ai-for-devs 7 ай бұрын
Thank you for the clarification! I'll make sure to consistently use the lowercase "o" in the next videos.
@trevordupp8734
@trevordupp8734 7 ай бұрын
Thank you for putting this out so quickly! I've been wanting try something with the new release
@ai-for-devs
@ai-for-devs 7 ай бұрын
Thank you 🙏
@Raptorjackson
@Raptorjackson Ай бұрын
Can i replace voice with my own voice...?
@nathanchilds3952
@nathanchilds3952 6 ай бұрын
Is it possible to save the entire conversation to a local db. Then in between conversations, before starting a new one, the code pulls the previous conversations and feeds that into the prompt first so the “girl friend” has all the previous context(memory) to pull from?
@jichaelmorgan3796
@jichaelmorgan3796 6 ай бұрын
Yup, there are some tutorials out there for it
@ai-for-devs
@ai-for-devs 6 ай бұрын
There is an easy way to do this by using autogen teachable agents. Please have a look at kzbin.info/www/bejne/qau8lpSLodiUhLssi=DhT82kIjkLsxHSiL
@arianaponytail
@arianaponytail 7 ай бұрын
it will take a few weeks before they release the full new voice system and api aswell as the video function and api. When they do , you should update this project. it will be a lot more imersive. and it should be able to litteraly watch a movie with you and comment on what it sees and have a very detailed emotional voice with very fast response time. :)
@ai-for-devs
@ai-for-devs 7 ай бұрын
Thank you for clarifying that, @arianaponytail! I can't wait either. It's exciting to know that the vision capabilities can already be used with the new model and API.
@mauricio9581
@mauricio9581 6 ай бұрын
Hey thank you for that amazing code! I have a problem. The second moment i ask a question the output.mp3 file gives me an error. PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Mauricio\\Desktop\\Gpt4o GF\\output.mp3' What could be the solution?
@emkjuslen
@emkjuslen 4 ай бұрын
this is just what i was looking for. thanks. Would have been great if you dropped a repo link
@baijnathmahto600
@baijnathmahto600 2 ай бұрын
Github link for this??
@AhmetAKTA-qn8by
@AhmetAKTA-qn8by 7 ай бұрын
Great ! , can I make it just answer from spesific own data ? Answer depending on the Sql table data or something ?
@nathanchilds3952
@nathanchilds3952 6 ай бұрын
I was thinking the same thing. Like persist all the conversations into a local db table. Then each time the “gf” is instantiated feed it the previous conversations via the prompt so it would have “memory/context”. Granted this could amount to a ton of data over time. Or allow the chat bot a method to go search the local db and use key words on the table data so it would be easier to parse thru. Similar to the AI Car repair bot he made
@ai-for-devs
@ai-for-devs 6 ай бұрын
There will be a video next week about using vector stores with gpt4o at ai-for-devs.com
@nathanchilds3952
@nathanchilds3952 6 ай бұрын
@@ai-for-devs sweet!
@gutv
@gutv 7 ай бұрын
is there any way to have that magical voice expression as showed in the openai presentation?
@ai-for-devs
@ai-for-devs 7 ай бұрын
That's a very good question. On the official page of the text-to-speech guides (platform.openai.com/docs/guides/text-to-speech), it still states the old text: 'There is no direct mechanism to control the emotional output of the audio generated'.
@blasandresayalagarcia3472
@blasandresayalagarcia3472 7 ай бұрын
​@@ai-for-devs maybe not emotionally related outputs, but you could implement a system with natural interrupts
@Yewbzee
@Yewbzee 7 ай бұрын
FYI this isn’t using the new conversation mode that they rolled out with 4o, this is the old version.
@ai-for-devs
@ai-for-devs 7 ай бұрын
We're using the GPT-4o model for the chat completion endpoint due to its faster inference speed, rather than the GPT-4 or GPT-4 Turbo models. As of now, I don't believe there is a way to use GPT-4o via API directly with sound files. If there is a method, please let me know.
@TheInternalNet
@TheInternalNet 7 ай бұрын
Absolutely CRAZY!! This is some really interesting/exciting things.
@ai-for-devs
@ai-for-devs 7 ай бұрын
It really is!
@dr8544
@dr8544 7 ай бұрын
hey can we change the voice using by any open source model ?
@ai-for-devs
@ai-for-devs 7 ай бұрын
Absolutely, you can easily replace Whisper and the audio API call with any open-source model of your choice, or use a service like Replica, which provides easy access to such models.
@Cryptowski
@Cryptowski 7 ай бұрын
very good! however, i get this error after the bot has created the output.mp3 on my first question, when i then ask a follow-up question, this error occurs. so it cannot change the output.mp3 once it has been created. Traceback (most recent call last): File "F:\BOTS\her-gpt4o\app.py", line 32, in response.stream_to_file('output.mp3') File "C:\Users\atzek\.conda\envs\her\lib\site-packages\typing_extensions.py", line 2636, in wrapper return arg(*args, **kwargs) File "C:\Users\atzek\.conda\envs\her\lib\site-packages\openai\_legacy_response.py", line 423, in stream_to_file with open(file, mode="wb") as f: PermissionError: [Errno 13] Permission denied: 'output.mp3'
@ai-for-devs
@ai-for-devs 7 ай бұрын
To avoid this issue, you can create temporary files or change the filenames based on timestamps or an increment. This way, each response gets a unique file name, preventing conflicts.
@Cryptowski
@Cryptowski 7 ай бұрын
@@ai-for-devs i'm not a coder :( how?
@DezorianGuy
@DezorianGuy 7 ай бұрын
Is there a way to create such an ai gf or person with an offline model? With fast response times etc that updates itself with the latest internet knowledge base when needed etc?
@ai-for-devs
@ai-for-devs 7 ай бұрын
Creating an offline AI girlfriend or persona with fast response times and high-quality inference is challenging due to the significant hardware requirements. The computational power needed for real-time processing and maintaining up-to-date knowledge is substantial, making it difficult to achieve the same performance as cloud-based solutions without high-end hardware. However, you can keep everything local that should be private by using a local vector store for sensitive data. This hybrid approach allows you to balance performance and privacy by running core models offline and updating online as needed.
@DezorianGuy
@DezorianGuy 7 ай бұрын
@@ai-for-devs thx. I don't have Internet access all the time so an offline alternative would be awesome. Also the one thing bothering me when using gpt4 is the long response times as it has to check the web. For an ai companion it doesn't necessarily need the most recent news to be socially useful. Maybe I'm wrong but there seem to be more advantages for an offline ai person. Faster responses as it doesn't have to check the web (also no queues), versatile use as it can be used anywhere (isn't reliant on constant Internet access), cost effective as there aren't monthly fees, secure as it runs locally, up to date (kinda) with most recent Internet updates integrateable at will, like once every month (topics adjustable to the ai persona), etc.
@Arjun-hc7ow
@Arjun-hc7ow 6 ай бұрын
Hi is that api u are using tgat it fir free version !?
@antonkruger
@antonkruger 7 ай бұрын
Greater tutorial as always. I can't find the code on your github. Can you provide it pls.
@ai-for-devs
@ai-for-devs 7 ай бұрын
Sure, please send an email to sebastian@ai-for-devs.com with your GitHub alias or join www.skool.com/ai-for-devs/about for free access to all courses and source code (only today).
@trevordupp8734
@trevordupp8734 7 ай бұрын
How could we say a phrase to end the conversation script?
@ai-for-devs
@ai-for-devs 7 ай бұрын
You could add a condition like: ... print(transcription.text) if "goodbye" in transcription.text.strip().lower(): print("Goodbye detected, exiting loop.") break
@trevordupp8734
@trevordupp8734 7 ай бұрын
@@ai-for-devs Would I place this at the beginning of the while True: loop?
@InspirasiKita-ID
@InspirasiKita-ID 2 күн бұрын
Bro, i cant wait u make tutorial TTS Ai from Vtuber Studio. so i can talk my Waifu 2D Models. looking fowards for new Video.
@dersinier
@dersinier 6 ай бұрын
If you use whisper, you dont use the multimodal aspect of GPT 4o. It's not the real deal.
@ai-for-devs
@ai-for-devs 6 ай бұрын
Please check the comment and the discussion in the previous comment of arianaponytail
@Shulyaka
@Shulyaka 6 ай бұрын
+1, the title is misleading. I've been clickbaited.
@chadgtr34
@chadgtr34 7 ай бұрын
can we discuss the recent football match with the ai ?
@ai-for-devs
@ai-for-devs 7 ай бұрын
Please do it and send me a screenshot 😂
@chadgtr34
@chadgtr34 7 ай бұрын
@@ai-for-devs i mean, does the ai watch football ? so we can discuss football news with the ai
@edwardsu7497
@edwardsu7497 7 ай бұрын
Amazing! Thanks for sharing!
@texrwind
@texrwind 6 ай бұрын
Can i find free gpt4o key? I want test my code just one time. 20dollar expensive for this😅
@Happy_Swede
@Happy_Swede 6 ай бұрын
👍 men saknar Xai’s #Grok…
@Powdermonkey99
@Powdermonkey99 7 ай бұрын
$2.8 Billion in 2023 🤯🤯
@ai-for-devs
@ai-for-devs 6 ай бұрын
And this will triple this year
@soulless8471
@soulless8471 6 ай бұрын
U ROCK!
@darkman237
@darkman237 7 ай бұрын
I'm guessing you have to be a paying customer?
@ai-for-devs
@ai-for-devs 6 ай бұрын
Correct
@build.aiagents
@build.aiagents 7 ай бұрын
Phenomenal
@fabriziocasula
@fabriziocasula 7 ай бұрын
thank you very good
@peterpui7219
@peterpui7219 7 ай бұрын
Any AI boyfriend?
@ai-for-devs
@ai-for-devs 7 ай бұрын
AI boyfriends? Absolutely! Just like AI girlfriends, you can create an AI boyfriend with the same tech. He’ll be attentive, always remember anniversaries, and never complain about watching romantic comedies.
How to use ChatGPT to learn ANY Language (new update)
13:26
Matt Brooks-Green
Рет қаралды 69 М.
Run your own AI (but private)
22:13
NetworkChuck
Рет қаралды 1,7 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 9 МЛН
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 191 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 26 МЛН
小路飞和小丑也太帅了#家庭#搞笑 #funny #小丑 #cosplay
00:13
家庭搞笑日记
Рет қаралды 17 МЛН
INSANE OpenAI News: GPT-4o and your own AI partner
28:48
AI Search
Рет қаралды 948 М.
How I Made AI Assistants Do My Work For Me: CrewAI
19:21
Maya Akim
Рет қаралды 912 М.
Why & When You Should be Using Claude over ChatGPT
14:17
The AI Advantage
Рет қаралды 128 М.
9 incredible AI apps that changed my life forever
16:29
Silicon Valley Girl
Рет қаралды 380 М.
Creating J.A.R.V.I.S. powered by GROQ and Python
14:47
AI FOR DEVS
Рет қаралды 175 М.
How I built an AI Teacher with Vector Databases and ChatGPT
13:43
How to Get ChatGPT to Make Phone Calls For You (Custom GPT Tool)
8:06
Правильный подход к детям
00:18
Beatrise
Рет қаралды 9 МЛН