Skip to content

Commit 6f9c578

Browse files
Update README.md
Markdown
1 parent 749e53d commit 6f9c578

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ This is a lightweight Python cloud script for voice typing and speech-to-text (S
55
While this script is primarily designed for desktop environments, similar functionality can be achieved on mobile devices (iOS and Android) using built-in voice dictation features or custom mobile app development
66

77

8-
## Voice Typing Script Overview
8+
## 1. Voice Typing Script Overview
99

10+
### Install Necessary Dependencies
1011

11-
1. ### Install Necessary Dependencies
1212
Make sure you have these installed via the terminal:
1313

1414

@@ -17,12 +17,12 @@ sudo apt-get install python3 python3-pip xdotool portaudio19-dev python3-pyaudio
1717
pip3 install SpeechRecognition
1818
```
1919

20-
2. File instructions for code snippets: Python Script
20+
## 2. File instructions for code snippets: Python Script
2121

22-
# Open the Python script and print its contents with open ('voice_type_py', 'r') as file:
22+
### a. Open the Python script and print its contents with open ('voice_type_py', 'r') as file:
2323
print (file.read)
2424

25-
Create a file named voice_type.py and add the following code:
25+
### b. Create a file named voice_type.py and add the following code:
2626

2727
```
2828
Python
@@ -56,26 +56,27 @@ while True:
5656
break```
5757
5858
59-
Running the Script
59+
## 3. Running the Script
6060
61-
Save the file as voice_type.py. Open the terminal and run the script:
61+
### - Save the file as voice_type.py. Open the terminal and run the script:
6262
6363
```bash
6464
#python3 voice_type.py
6565
66-
Testing
66+
## 4. Testing
6767
6868
1. Open Brave or any text editor, and run the script.
6969
2. Focus on the text field and speak into your microphone. The words should be typed automatically.
7070
71-
**Common Troubleshooting*
72-
**
73-
- If it's not working, try adjusting the device index in the script to match your active microphone (check with arecord -l).
74-
- If you encounter errors with the microphone, ensure that PulseAudio is running correctly (pulseaudio --start).
71+
72+
## 5. Common Troubleshooting
73+
74+
### - If it's not working, try adjusting the device index in the script to match your active microphone (check with arecord -l).
75+
### - If you encounter errors with the microphone, ensure that PulseAudio is running correctly (pulseaudio --start).
7576
Test the microphone in the terminal to ensure it's working using:
7677
77-
```
78-
bash
78+
```bash
7979
arecord -D plughw:1,0 -f cd test-mic.wav```
80-
Commit your changes: Enter a commit message like "Add Voice Typing Script Overview" and click "Commit changes".
80+
81+
## 6. Commit your changes: Enter a commit message like "Add Voice Typing Script Overview" and click "Commit changes".
8182

0 commit comments

Comments
 (0)