You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/create-a-voice-virtual-assistant/create-a-voice-virtual-assistant.mdx
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ uid={true}
31
31
32
32
## Introduction
33
33
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.
35
35
36
36
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)).
37
37
@@ -52,7 +52,7 @@ That's why I decided to create my own! Back then, APIs were limited in functiona
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:
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:
116
116
117
117
<ImageZoomsrc="https://i.imgur.com/vfmMv7r.png"/>
118
118
119
119
```bash
120
120
AGENT_ID=your_agent_id
121
121
```
122
122
123
+
There shouldn’t be spaces around the `=` in a **.env** file.
124
+
123
125
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.
124
126
125
127
<ImageZoomsrc="https://i.imgur.com/0vfNTOd.png"/>
126
128
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:
128
130
129
131
```bash
130
132
API_KEY="sk_XXX...XXX"
131
133
```
132
134
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.
0 commit comments