Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

播放歌曲口令支持模糊搜索 #52

Closed
hanxi opened this issue May 14, 2024 · 2 comments
Closed

播放歌曲口令支持模糊搜索 #52

hanxi opened this issue May 14, 2024 · 2 comments
Labels
新功能 可能会实现的功能 高优先级 优先制作的需求

Comments

@hanxi
Copy link
Owner

hanxi commented May 14, 2024

做成可配置选项,口令为播放歌曲+搜索词,播放匹配的第一个。

@hanxi hanxi added the 新功能 可能会实现的功能 label May 14, 2024
@hanxi hanxi added the 高优先级 优先制作的需求 label Jun 29, 2024
@hanxi hanxi closed this as completed in f18b2f4 Jun 29, 2024
@hanxi
Copy link
Owner Author

hanxi commented Jun 29, 2024

v0.1.77 版本支持模糊搜索

@hanxi
Copy link
Owner Author

hanxi commented Jun 29, 2024

模糊匹配默认打开,如果想关闭可以把 XIAOMUSIC_ENABLE_FUZZY_MATCH 设为 false。如下:

services:
  xiaomusic:
    image: hanxi/xiaomusic
    container_name: xiaomusic
    restart: unless-stopped
    ports:
      - 8090:8090
    volumes:
      - ./music:/app/music
    environment:
      MI_USER: '小米账号'
      MI_PASS: '小米密码'
      XIAOMUSIC_ENABLE_FUZZY_MATCH : 'false'
      XIAOMUSIC_HOSTNAME: 'docker 主机 ip'

如果想要修改匹配阈值,可以设置 XIAOMUSIC_FUZZY_MATCH_CUTOFF ,这个值默认为 0.6,可以配0到1直接的小数,越小越模糊,越大越精准。比如:

services:
  xiaomusic:
    image: hanxi/xiaomusic
    container_name: xiaomusic
    restart: unless-stopped
    ports:
      - 8090:8090
    volumes:
      - ./music:/app/music
    environment:
      MI_USER: '小米账号'
      MI_PASS: '小米密码'
      XIAOMUSIC_FUZZY_MATCH_CUTOFF : '0.3'
      XIAOMUSIC_HOSTNAME: 'docker 主机 ip'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
新功能 可能会实现的功能 高优先级 优先制作的需求
Projects
None yet
Development

No branches or pull requests

1 participant