aydinnyunus /
LinuxVoiceAssistant
Linux Voice Assistant for to Make Your Work Easier
Loading repository data…
EnjiRouz / repository
Python Voice Assistant project can: recognize and synthesize speech without Internet access; report the weather forecast anywhere in the world; make a search in the Google; make a video search in the YouTube; make a search for a definition in Wikipedia and read it; translate from the target language to the user's native language, and much more
Данный проект голосового ассистента на Python 3 для Windows и Linux умеет:
Для быстрой установки всех требуемых зависимостей можно воспользоваться командой:
pip install requirements.txt
Голосовой ассистент использует для синтеза речи встроенные в операционные системы возможности
(т.е. голоса зависят от настроек операционной системы). Для этого используется библиотека pyttsx3. Подробнее здесь
Для корректной работы системы распознавания речи в сочетании с библиотекой SpeechRecognition
используется библиотека PyAudio для получения звука с микрофона.
В целом, решение работает на Windows, Linux и MacOS с незначительными различиями при установке библиотек PyAudio и Google.
Для установки PyAudio на Windows можно найти и скачать нужный в зависимости от архитектуры и версии Python whl-файл здесь в папку с проектом. После чего его можно установить при помощи подобной команды:
pip install PyAudio-0.2.11-cp38-cp38m-win_amd64.whl
В случае проблем с установкой PyAudio на MacOS может помочь данное решение.
Для использования SpeechRecognition в offline-режиме (без доступа к Интернету),
потребуется дополнительно установить Vosk (качество моделей близко к Google)
В проекте преимущественно используется Google при наличии доступа в Интернет и
предусмотрено переключение на Vosk в случае отсутствия доступа к сети.
Для избежания проблем с установкой Vosk на Windows, я предлагаю скачать whl-файл в зависимости от требуемой архитектуры и версии Python. Его можно найти здесь. Загрузив файл в папку с проектом, установку можно будет запустить с помощью подобной команды:
pip install vosk-0.3.7-cp38-cp38-win_amd64.whl
Модели для распознавания речи с помощью Vosk можно найти здесь. Я использовала в проекте ru и en модели
Для получения данных прогноза погоды мною был использован сервис OpenWeatherMap, который требует API-ключ.
Получить API-ключ и ознакомиться с документацией можно после регистрации (есть Free-тариф) здесь.
Примеры использования можно найти здесь
Команды для установки прочих сторонних библиотек:
| Команда установки | Назначение библиотеки |
|---|---|
pip install google | Поисковые запросы в Google |
pip install SpeechRecognition | Распознавание речи (Speech-To-Text) |
pip install vosk | Offline распознавание речи (Speech-To-Text) |
pip install pyttsx3 | Offline синтез речи на Windows (Text-To-Speech) |
pip install wikipedia-api | Wikipedia API |
pip install googletrans | Google Translate |
pip install pyowm | Получение данных погоды с помощью OpenWeatherMap |
pip install python-dotenv | Работа с .env-файлами для хранения API-ключей |
pip install scikit-learn | Машинного обучение для угадывания намерений |
Дополнительную информацию по установке и использованию библиотек можно найти здесь
У меня на Windows не возникало проблем с установкой библиотек, перечисленных в таблице выше,
потому прилагаю только команды для установки.
В случае возникновения проблем с установкой на Windows, вы можете воспользоваться тем же способом,
который я предлагала для установки PyAudio выше.
Selected from shared topics, language and repository description—not editorial ratings.
aydinnyunus /
Linux Voice Assistant for to Make Your Work Easier
kinganupamdutta27 /
A virtual assistant is an independent contractor who provides administrative services to clients while operating outside of the client's office. A virtual assistant typically operates from a home office but can access the necessary planning documents, such as shared calendars, remotely. People employed as virtual assistants often have several years of experience as an administrative assistant or office manager. New opportunities are opening up for virtual assistants who are skilled in social media, content management, blog post writing, graphic design, and Internet marketing. As working from home has become more accepted for both workers and employers, the demand for skilled virtual assistants is expected to grow. In today’s era almost all tasks are digitalized. We have Smartphone in hands and it is nothing less than having world at your fingertips. These days we aren’t even using fingers. We just speak of the task and it is done. There exist systems where we can say Text Friend, “I will Call you Letter.” And the text is sent or any one may make call by saying “Call To Mr. Roy” That is the task of a Virtual Assistant. It also supports specialized task such as booking a flight, or finding cheapest book online from various e-commerce sites and then providing an interface to book an order are helping automate search, discovery and online order operations. An intelligent virtual assistant (IVA) or intelligent personal assistant (IPA) is a software agent that can perform tasks or services for an individual based on commands or questions. The term "chatbot" is sometimes used to refer to virtual assistants generally or specifically accessed by online chat. In some cases, online chat programs are exclusively for entertainment purposes. Some virtual assistants are able to interpret human speech and respond via synthesized voices. Users can ask their assistants questions, control home automation devices and media playback via voice, and manage other basic tasks such as email, to-do lists, and calendars with verbal (spoken?) commands. A similar concept, however with differences, lays under the dialogue systems. The project aims to develop a personal-assistant for Linux-based / Windows systems using Python, Jupitar Notebook, PyCharm. Voice Assistant using Python draws its inspiration from virtual assistants like Cortana for Windows, and Siri for iOS. It has been designed to provide a user-friendly interface for carrying out a variety of tasks by employing certain well-defined commands. Users can interact with the assistant either through voice commands or using sound or Voice input input. As a personal assistant, this system assists the end-user with day-to-day activities like general human conversation, searching queries in google, Bing or yahoo, searching for videos, retrieving images, live weather conditions, word meanings, searching for medicine details, health recommendations based on symptoms and reminding the user about the scheduled events and tasks. The user statements/commands are analyzed with the help of machine learning to give an optimal solution.
Surya2709 /
Our system is an intelligent virtual assistant (IVA) or intelligent personal assistant (IPA).Our system is a software agent that can perform tasks or services for an individual based on commands or questions. It is completely made for the usage of this system in Linux operating systems. This system is programmed in python 3 and it uses speech recognition library in python 3. Our software features many advanced features such as voice commanded operations such as Event Remainders, Weather forecasting, You-tube search, Google search, Wikipedia search, Opening of Applications, Voice typing and keyboard controls. Our system uses python speech recognition library to extract data from the user speech data. The personal Linux voice assistant ease out the use of Linux system by making the operating system more user friendly.
thecmdrunner /
Open source Voice Assistant, alternatives to Google Assistant that runs on Linux, Mac OS, and Windows.
cnitika /
🚀 All-in-One Python Automation Dashboard built with Streamlit. Features include Email, WhatsApp, SMS, Calls, Google Search, RAM Monitoring, Camera Capture, Linux & Docker Commands, and Voice Assistant Integration.
Raffsx /
Assistente de voz, identifica comandos e realiza ações utilizando python e a API - Vosk. Instalações dos componentes principais deste projeto: 1- Python 3.8.0: Realmente, até o momento só funciona se o python for "3.8.0"(Nem tente o 3.8.5), no windowns, a API Vosk é muito nova e ainda está sendo melhorada. Porém, é a única com modelo acústico pt-Br que funciona OFFLINE e que não precisa passar meses treinando modelo acústico. 2- Pipwin: "pipwin é como pip, mas instala binários pré-compilados do Windows fornecidos por Christoph Gohlke. Poupa muita procura no Google e downloads manuais." (Tomi Aarnio, usuário do stackoverflow). 3- API - Vosk: Realiza todo o trabalho "Pesado" deste projeto identificando as palavras ditas através do microfone ou de arquivos .WAV; 4- PYAUDIO -: Responsável por capturar o áudio do microfone e transferir à Vosk; 5- Vosk-model-small-pt-0.3: Pequeno (e único) modelo acústico em português pt-Br. Instalação: Instale primeiramente python 3.8.0 e remova qualquer outra versão do python existente da sua maquina. Em seguida instale o Pipwin (pip install pipwin). Agora instale o Pyaudio(pipwin install pyaudio) e ao finalizar instale a api-vosk(pip3 install vosk). Teste: Para testarmos utilizaremos os arquivos de teste da Api-vosk disponíveis no github "https://github.com/alphacep/vosk-api", baixe e descompacte, extraia também o seu modelo acústico, copie a pasta extraída acesse este diretório dentro do arquivo descompactado "\vosk-api-master\python\example", cole o modelo e renomeie para "model". Com o prompt de comando(CMD) ou Powershell ou VSCODE, navegue até a pasta "example" e execute o arquivo.py chamado "test_microphone", espere carregar e divirta-se. Faça alguns testes para ver a forma como a API consegue identificar a sua pronuncia, e as palavras que ela consegue identificar. Observações e recomendações: Recomendo fortemente acessar o site https://alphacephei.com/vosk/ dos criadores desta incrível API Cada item acima foi arduamente testado(hehehe) e houve muita cabeça quebrada até descobrir como tudo isso funcionaria. No linux a instalação é muito mais simples, bastaria o python de qualquer versão e um simples "pip3 install vosk && pip3 install pyaudio", mas tenho a mania de querer o mais difícil(kkkk). Fontes: https://alphacephei.com/vosk/ https://github.com/alphacep/vosk-api/issues/189#issuecomment-675278286 https://stackoverflow.com/questions/53866104/pyaudio-failed-to-install-windows-10