ScR4tCh / timebox

Divoom timebox CLI utility
148 stars 31 forks source link

Do u have any idea how to play music on timebox #9

Open vit1251 opened 6 years ago

vit1251 commented 6 years ago

Hello, do u think about how to play music on timebox via API or it require some another profile. How it implement in Python or other

ScR4tCh commented 6 years ago

Hi, I'd guess it just uses A2DP to stream audio. This however is a "default" BT Profile. So normally you'll see your A2DP Device as an audio card (your OSs BT-Stack should take care about) which you can stream to, as you'd do with any other audio peripherals (USB Soundcard, etc). There is no need to have this functionality inside this project, every audio player should just work fine.

tinoargentino commented 6 years ago

Hi! I used raspotify to play music from spotify. After some work it works fine!

vit1251 commented 6 years ago

I talk about sound effects like tada.wav for some visual image on TimeBox.

ScR4tCh commented 6 years ago

I have no clue if this is possible. This would require to put the sound file onto the box and also an "command" to start playback when requested. As far as I remember, the original "App" does not provide this feature. However, you could build in functionality to start streaming some sort of sound effect to your bluetooth think when starting the animation.

vit1251 commented 6 years ago

@ScR4tCh it require to setup system. I talk about full automated version create and provide audio without configuring separate product like PulseAudio and etc.