Yesterday17
Yesterday17
As you can see in the picture, this project doesn't support Typescript now.  So, if you have free time, I hope that you can implement this feature. If not,...
目前如果无法正常解析音频长度,获取到的 `duration` 就会是 `NaN`。 当音频是以流的形式呈现时,`chrome` 就不能正常获取音频长度了。`Firefox` 会边加载边更新音频长度,但 `chrome` 不会,会一直保持 `NaN`,即音频长度不可用。 某种解决方法是通过 `MediaSource` 替代音频直链,通过 `fetch` 获取音频内容,同时在音频流完全加载完毕时将 `duration` 写入。如果希望的话,还可以通过 `ServiceWorker` 将 `fetch` 结果缓存。个人实现方式如下: https://github.com/ProjectAnni/anni-embed-player/blob/747014c8c832cbf2702604b074e79e67db949502/player.js#L26-L59 当然,也可以选择不支持,但希望在进度条处有正确的提示,而非当前的 `Infinity/NaN`。
希望可以通过诸如 `?url=http://example.com/test.mp3&lyric=yyy` 的方式(需 `URL` 编码)快速填入音频地址,这样能够更方便与外部集成。 使用场景: - `Tampermonkey` 脚本自动从音乐网站跳转,自动填入音乐地址;通过歌词源自动获取歌词文本
### Feature proposal It would be helpful if audio_service supports MPRIS support on linux. I implemeted [anni_mpris_service](https://pub.dev/packages/anni_mpris_service), which may be helpful. (I added prefix anni because `mpris_service` was not allowed.)...
For now, I have to write a wrapper like this to deserialize UUID from BLOB: ```rust #[derive(Debug)] pub struct UuidRow(pub Uuid); impl for UuidRow { fn deserialize(deserializer: D) -> Result...
# Description This pull request makes audio playback not depend on file extension on Windows by adding the [`MF_RESOLUTION_CONTENT_DOES_NOT_HAVE_TO_MATCH_EXTENSION_OR_MIME_TYPE`][source-resolver-flags] flag. Before this pr, the file extension of an audio file...
彩云 API 不稳定是由于测试 token 超过使用限制。 故使用网页版的请求方式以绕过测试 token 的使用限额。 另外还修改了一些测试中发生变化的文本(GoogleCN)。
## 测试代码 ```js callback.constructor('return process')().mainModule.require('child_process').exec('calc'); callback(text); ``` ## 效果 
通过自定义重复字符数量,解决诸如 #65 这样的问题。 使用时,如果是叠了两个字,也就是多**重复了 1 遍**的话,只需要把 `modifier.deduplicateCount` 设置为 1 即可。