Skip to content

Commit 4c1ad97

Browse files
authored
Update create-a-voice-virtual-assistant.mdx
1 parent 3981cad commit 4c1ad97

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

projects/create-a-voice-virtual-assistant/create-a-voice-virtual-assistant.mdx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ uid={true}
3131

3232
## Introduction
3333

34-
Hey!👋 I'm Alex! Since this is my first tutorial on Codédex, I wanted to revisit a very popular project I made in 2023: creating a voice virtual assistant using Python.
34+
Hey! 👋 I'm Alex! Since this is my first project tutorial on Codédex, I wanted to revisit a very popular project I made in 2023: creating a voice virtual assistant using Python.
3535

3636
Back in 2023, I had just graduated with a Master's of Science in Artificial Intelligence and I had already made a few fun AI projects like detecting vehicles in video games using object detection or teaching 3D characters to jump over obstacles using reinforcement learning (You can check them out on my [YouTube channel](https://www.youtube.com/@alexandresajus/videos)).
3737

@@ -52,7 +52,7 @@ That's why I decided to create my own! Back then, APIs were limited in functiona
5252

5353
<ImageZoom src="https://i.imgur.com/bWX2sx8.png" />
5454

55-
It was a lot of work but it was worth it! I released it on [GitHub](https://github.com/AlexandreSajus/JARVIS) and on [YouTube](https://github.com/AlexandreSajus/JARVIS) and it got 24k views, 485 stars and 88 forks! Here's me talking to my chatbot after spending 24 hours without sleep creating it:
55+
It was a lot of work but it was worth it! I released it on [GitHub](https://github.com/AlexandreSajus/JARVIS) and on [YouTube](https://github.com/AlexandreSajus/JARVIS) and it got 24k views, 485 stars, and 88 forks! Here's me talking to my chatbot after spending 24 hours without sleep creating it:
5656

5757
<ImageZoom src="https://i.imgur.com/ecC0Tff.png" />
5858

@@ -100,37 +100,39 @@ ElevenLabs provides a Conversational AI API that we will use to create our Voice
100100

101101
1. Sign up at [ElevenLabs](https://elevenlabs.io/app/sign-up) and follow the instructions to create an account.
102102

103-
2. Once signed in, go to "Conversational AI"
103+
2. Once signed in, go to "Conversational AI".
104104

105105
<ImageZoom src="https://i.imgur.com/aIYfusq.png" />
106106

107-
3. Go to "Agents"
107+
3. Go to "Agents".
108108

109109
<ImageZoom src="https://i.imgur.com/L9xwBgl.png" />
110110

111-
4. Click on "Start from blank"
111+
4. Click on "Start from blank".
112112

113113
<ImageZoom src="https://i.imgur.com/PD8v3Ax.png" style={{width: "60%", height: "auto"}}/>
114114

115-
5. Create a ".env" file at the root of your project folder. We will use this file to store our API credentials securely. This way they won't be hardcoded in the script. In this ".env" file, add your Agent ID:
115+
5. Create a **.env** file at the root of your project folder. We will use this file to store our API credentials securely. This way they won't be hardcoded in the script. In this **.env** file, add your Agent ID:
116116

117117
<ImageZoom src="https://i.imgur.com/vfmMv7r.png"/>
118118

119119
```bash
120120
AGENT_ID=your_agent_id
121121
```
122122

123+
There shouldn’t be spaces around the `=` in a **.env** file.
124+
123125
6. Go to the "Security" tab, enable the "First message" and "System prompt" overrides, and save. This will allow us to customize the assistant's first message and system prompt using Python code.
124126

125127
<ImageZoom src="https://i.imgur.com/0vfNTOd.png"/>
126128

127-
7. Click on your profile and go to "API keys". Create a new API key and copy it to your ".env" file:
129+
7. Click on your profile and go to "API keys". Create a new API key and copy it to your **.env** file:
128130

129131
```bash
130132
API_KEY="sk_XXX...XXX"
131133
```
132134

133-
**Make sure to save your ".env" file after adding the credentials.**
135+
**Important:** Make sure to save your **.env** file after adding the credentials.
134136

135137
<ImageZoom src="https://i.imgur.com/Q5QrGVl.png" />
136138

@@ -143,7 +145,7 @@ ElevenLabs is now set up and ready to be used in our Python script!
143145

144146
### Load Environment Variables
145147

146-
Create a Python file (e.g., `voice_assistant.py`) and load your API credentials:
148+
Create a Python file (e.g., **voice_assistant.py**) and load your API credentials:
147149

148150
```py
149151
import os

0 commit comments

Comments
 (0)