在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:hdmvide/Homebridge-SwitchSound开源软件地址:https://github.com/hdmvide/Homebridge-SwitchSound开源编程语言:JavaScript 100.0%开源软件介绍:SwitchSoundSwitchSound is a plugin that offers the possibility to create buttons that activate the playback of audio files present locally. Each button is linked (and will play) a single audio file or a folder of audio files in shuffle. In the latter case, pressing the button will randomly select and play one of the audio files present in the specified path. For each button you can adjust the volume of the audio playback. The volume cannot be adjusted during playback but only before pressing the button. Install OmxplayerLog in ssh to the raspberry and install omxplayer with this command. Omxplayer is the music player that will play your sounds.
Upload your sounds on PiLog in ssh to the raspberry and create a folder "sounds" in this path:
To create folders and transfer your audio files, you can use an SFTP application. I use Cyberduck. https://cyberduck.io/ How use SwitchSoundAfter installing the player and uploaded our favorite sounds, let's create the Homekit buttons corresponding to our audio files. Let's open the Homebridge configuration and create the new SwitchSound platform as follows:
Parameters
PermissionsIf the playback of your audio files does not work, it may be necessary to assign permissions to the user with whom you started homebridge (if different from pi). Run these commands:
Now reboot your raspberry. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论