How to Use OpenAI's TTS API in Python - Quick Overview and Implementation

preview_player
Показать описание
Links referenced in the video:

Timestamps:
OpenAI API Key - 0:28
Environment Set-up - 1:37
TTS Code - 3:40
Loading API Key from Yaml - 4:45
Reading out Audio from TTS - 8:14
Creating Chatbot - 10:37
Generating Bot Response Function - 12:22
Generate Audio Function - 17:43

Hardware for my PC:

Alternative prebuilds to my PC:

Cheapest and PC recommended:

Come join The Learning Journey!

If you found anything helpful, please consider supporting me and the content I am trying to produce!
Рекомендации по теме
Комментарии
Автор

You know it'll be a good day when there's a new JJ video drop 🥳

Mowgi
Автор

I have never coded anything in my life.

Thanks to this tutorial I have my own sarcastic 12 year old AI assistant. That's cool as hell. Thanks man!

DyschoCat
Автор

00:01 Guide on setting up OpenAI TTS API in Python
01:43 Setting up a virtual environment for isolating packages and avoiding global issues.
03:50 Store the API key in a YAML file for security.
06:18 Set up OpenAI API key and account correctly for TTS functionality
08:24 Implement OpenAI's TTS API in Python for audio file processing.
10:49 Utilizing OpenAI's TTS API in Python
13:04 Creating a system personality for OpenAI's TTS API
15:20 Appending user input and bot responses to messages list.
17:44 Creating a chatbot using OpenAI's TTS API in Python
20:02 The TTS API can be expanded with user voice input and chatbot generation using GPT.
Crafted by Merlin AI.

UnderGradPlayers
Автор

awesome thank you so much! I got it to work.

Vergeliking
Автор

I am very glad to find your channel. For a beginner you make it understandable to following this topic.
Hopefully more tutor about TTS. Many thanks.

jayhu
Автор

I had a problem with

" import yaml
ModuleNotFoundError: No module named 'yaml'"

I've tried to find a solution in several searches and haven't found it.
Don't know where this conflict is coming from, because when you check the terminal everything is installed correctly.

Thx anyway

diegoemmanuel
Автор

Hey, do you think it´s possible to make whole books (pdf) into audiobooks?
I´ve tried but it didn´t work :/

Also I didn´t find anything related anywhere

maxmustermann
Автор

You've made my day! Your instructions were perfectly clear! I don't know Python, but following along with you was a breeze. I found another one of your videos that helped me install vs code and everything else I would need before attempting this one. I will definitely be subscribing to your channel! Thank You!

IS-kzgo