Linux 播放網易雲音樂(樹莓派)


  1. 環境安裝
    sudo apt-get install python-pip
    sudo apt-get insyall python-dev mpg123
    sudo pip install Netease-MusicBox
  2. 使用
    musicbox
    退出:"q"
    網易雲音樂 > 幫助
    0. 'j' Down 下移
    1. 'k' Up 上移
    2. 'h' Back 后退
    3. 'l' Forward 前進
    4. 'u' Prev page 上一頁
    5. 'd' Next page 下一頁
    6. 'f' Search 快速搜索
    7. '[' Prev song 上一曲
    8. ']' Next song 下一曲
    9. ' ' Play/Pause 播放/暫停
  3. 平滑提高音量
    #!/bin/bash
    SOUND_NAME="PCM"
    
    setVolume() {
        sudo amixer set $SOUND_NAME $1%
    }
    
    for n in $(seq 64  90);do setVolume $n;sleep 10;done
  4. 平滑降低音量

  5. #!/bin/bash
    SOUND_NAME="PCM"
    
    setVolume() {
        sudo amixer set $SOUND_NAME $1%
    }
    
    for n in $(seq 90 -1 64);do setVolume $n;sleep 10;done

     Musicbox項目地址
    https://github.com/darknessomi/musicbox

    個人版本
    git clone https://github.com/cloudswave/musicbox.git
    cd musicbox
    python setup.py install

     


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM