【工具】转码silk格式为mp3

【工具】转码slk格式为mp3

前提 安装 ffmpeg

【安装】Linux安装ffmpeg_linux安装ffmpeg4.4_我是Superman丶的博客-CSDN博客

GitHub - kn007/silk-v3-decoder: [Skype Silk Codec SDK]Decode silk v3 audio files (like wechat amr, aud files, qq slk files) and convert to other format (like mp3). Batch conversion support.

sh converter.sh 33921FF3774A773BB193B6FD4AD7C33E.slk mp3

java 执行转码的方法

复制代码
public static void main(String[] args) {
        try {


            //批量转换,会有一个文件转换失败,不明所以等待大神改进
            String command  = "sh D:/silk-v3-decoder-master/converter.sh D:/aaa D:/bbb mp3";
            //单个文件转换 测试无问题
            String command1  = "sh D:/silk-v3-decoder-master/converter.sh D:/aaa/msg_181711011620205ce3eb94d104.amr mp3";

            Process process = Runtime.getRuntime().exec(command);

            int status = process.waitFor();
            
            //打印执行状态  0为成功
            System.out.println(status);
            
            System.out.println(command);

        } catch (InterruptedException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
相关推荐
聚美智数9 小时前
食物热量搜索与详情双接口接入实战,轻量化生活服务 API 落地
java·开发语言·生活
Ting-yu9 小时前
Spring AI Alibaba零基础速成(2) ---- Ollama安装与使用
java·后端·spring·ai
砍材农夫9 小时前
物联网 基于netty构建mqtt服务协议支持
java·物联网·struts·netty
凤凰院凶涛QAQ10 小时前
《C++转Java快速入手系列》String篇:在C++里拼字符串像搬砖,在Java里拼字符串像玩乐高 —— 还是带垃圾回收的那种。
java·开发语言·c++
会编程的吕洞宾10 小时前
Spring_Boot_3_3_的___Transactional__
java·后端·spring
轻刀快马10 小时前
讲明白Lambda 表达式的进化史
java·开发语言
那个失眠的夜10 小时前
SpringBoot
java·开发语言·spring boot·spring·mvc·mybatis
多敲代码防脱发10 小时前
Spring进阶(Bean的生命周期与Bean的后处理器)
java·服务器·开发语言·spring boot·spring·servlet
RingWu10 小时前
高并发三板斧-缓存:命中率、一致性、治理
java·spring·缓存
流年如夢10 小时前
类和对象(上)
android·java·开发语言