Git Product home page Git Product logo

keep-jbl-go's Introduction

下载

build 文件夹有 Windows x86_x64 和 Arm MacOS 俩可执行文件可以直接下载,其余平台请自行构建。

说明

jbl-go 蓝牙音箱在没有声音输出时会自动休眠,此程序尝试自动输出人耳听不到(其实可以听到)的音频来保持音箱长久工作。

已经测试低频声音并不能阻止休眠,所以程序会播放 1 秒的有声音频,如果感觉声音较大可以考虑自行生成音频文件再构建。

音频文件通过以下命令生成:

ffmpeg -f lavfi -i "sine=frequency=30000:sample_rate=48000:duration=1" -af "volume=-30dB" -c:a pcm_s16le slient.wav

目前这个音量在我这里运行得很好,既几乎听不到声音,音箱又不会休眠。

参考文章: https://www.simaek.com/archives/15/

提示

jbl-go 用的 LM48511 芯片,给想要硬改的朋友一个信息。

构建

使用cargo build --release构建程序

运行

需要自动解决不同操作系统下自启的问题,例如 Windows 可以使用任务计划程序,Mac 可以使用自动操作, Linux 可以使用systemd

keep-jbl-go's People

Contributors

curtion avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.