This project started as a way to control the media like youtube video being played on my laptop using voice commands from my bluetooth headphones mic. As my headphones only provided me buttons for play/pause or next/prev video. I wanted the forward and backward feature we have in youtube(arrow keys). Which is essesntial for me while listening to long form media like podcasts and being away from the laptop.
audio-control's Introduction
audio-control's People
audio-control's Issues
pybluez in windows
pybluez github link: https://github.com/pybluez/pybluez
- for detecting button presses on bluetooth headphones
- in windows does not have support for L2CAP protocol which my headphones use for AVRCP(bluetooth profile for Audio/Video Remote Control)
- RFCOMM is only protocol supported in windows which my bluetooth uses for headset connection service. This was seen to detect some button presses.
- Another problem is headphones need to make a new connection if they are aready connected to laptop it does not work.
wake word detection
Building own wake word detection model: https://www.dlology.com/blog/how-to-do-real-time-trigger-word-detection-with-keras/
Progress....
Able to listen to speech through mic and recognize it using "speech_recognition":
- But keeps listening always or can set a pause_threshold which makes one iteration of listening loop continue.
- This is annoying as if user gives a voice command during this non-listening period it does not work.
- Possible solution only take command when, wake word(like Hey Alexa...) is detected or a button is pressed on headphones.
Able to switch to a youtube tab in browser using "pygetwindow" and "pyautogui":
- But only works if only one youtube tab is open.
- If multiple youtube tabs are open then stops at the first one it lands on.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.