This project is a voice assistant built using the Azure Speech to Text (STT) and Azure Text to Speech (TTS) services. It is implemented in the C programming language. The voice assistant can convert spoken language into written text using STT and provide synthesized speech output using TTS. it is for window user (for linux or other OS, you have to chage the code to open different applications)
To run this project, you will need the following:
- Azure subscription: You need an active Azure subscription to access the Azure Speech services. You can create a free account on the Azure portal if you don't have one.
- . C development environment: Set up a C development environment with a compiler and necessary libraries.
Follow these steps to set up the project:
-
Clone the project repository to your local machine.
-
Build the project using your C compiler. Refer to the compiler's documentation for specific instructions.
-
Run the compiled executable to start the voice assistant.
Once the project is set up and running, the voice assistant can be used to convert speech to text and generate synthesized speech output. Here are the basic steps:
-
Invoke the voice assistant by triggering the start command or any other method specific to your implementation.
-
Speak into the microphone or audio input device connected to your computer.
-
The voice assistant will use the Azure Speech to Text service to convert your speech into text.
-
The text output will be processed and appropriate actions will be taken based on the voice assistant's capabilities. You can customize the actions and responses according to your requirements.
-
The voice assistant may generate synthesized speech output using the Azure Text to Speech service to respond to queries or provide information.
-
Continue the conversation by speaking and listening to the voice assistant.
You can customize the voice assistant to fit your specific needs. Here are a few areas you might consider:
-
Add functionality: Extend the voice assistant's capabilities by incorporating additional services or APIs, such as natural language processing, third-party APIs, or IoT device control.
-
Improve speech recognition accuracy: Experiment with different parameters and techniques provided by the Azure Speech SDK to enhance the accuracy of speech-to-text conversion.
-
Enhance responses: Customize the voice assistant's responses by modifying the logic and text generation algorithms to provide more informative or engaging interactions.
-
UI integration: Integrate the voice assistant with a graphical user interface (GUI) or other input/output mechanisms to provide a seamless user experience.
If you encounter any issues while setting up or running the voice assistant project, consider the following troubleshooting steps:
-
Verify Azure Speech service credentials: Double-check the subscription key and region provided in the
config.h
file. -
Check network connectivity: Ensure that your computer has a working internet connection to communicate with the Azure Speech services.
-
Debugging: Utilize the debugging capabilities of your C development environment to identify and resolve any runtime errors or exceptions.
-
if it is not recording then see for permission in setting
This project is licensed . Feel free to modify, distribute, and use it in your own projects.
We would like to acknowledge the Azure Speech team for providing the powerful Speech to Text and Text to Speech services that form the backbone of this voice assistant project.
If you have any questions or suggestions, please feel free to contact us at mail.