gpt4 book ai didi

batch-file - 分别对文件进行声音交换(Sox)转换

转载 作者:行者123 更新时间:2023-12-02 23:53:23 25 4
gpt4 key购买 nike

我是编程新手(仅一点点python),并且我正在尝试运行一个首先需要wav格式文件的tutotrial。我的目录中有一堆.au文件,我正尝试将它们转换为.wav:

tony@VirtualBox:/media/sf_Dropbox/data/genres/classical$ ls
classical.00001.au classical.00018.au classical.00035.au classical.00052.au classical.00069.au classical.00086.au
classical.00002.au classical.00019.au classical.00036.au classical.00053.au classical.00070.au classical.00087.au
classical.00003.au classical.00020.au classical.00037.au classical.00054.au classical.00071.au classical.00088.au
classical.00004.au classical.00021.au classical.00038.au classical.00055.au classical.00072.au classical.00089.au
classical.00005.au classical.00022.au classical.00039.au classical.00056.au classical.00073.au classical.00090.au
classical.00006.au classical.00023.au classical.00040.au classical.00057.au classical.00074.au classical.00091.au
classical.00007.au classical.00024.au classical.00041.au classical.00058.au classical.00075.au classical.00092.au
classical.00008.au classical.00025.au classical.00042.au classical.00059.au classical.00076.au classical.00093.au
classical.00009.au classical.00026.au classical.00043.au classical.00060.au classical.00077.au classical.00094.au
classical.00010.au classical.00027.au classical.00044.au classical.00061.au classical.00078.au classical.00095.au
classical.00011.au classical.00028.au classical.00045.au classical.00062.au classical.00079.au classical.00096.au
classical.00012.au classical.00029.au classical.00046.au classical.00063.au classical.00080.au classical.00097.au
classical.00013.au classical.00030.au classical.00047.au classical.00064.au classical.00081.au classical.00098.au
classical.00014.au classical.00031.au classical.00048.au classical.00065.au classical.00082.au classical.00099.au
classical.00015.au classical.00032.au classical.00049.au classical.00066.au classical.00083.au classical.au
classical.00016.au classical.00033.au classical.00050.au classical.00067.au classical.00084.au classical.wav
classical.00017.au classical.00034.au classical.00051.au classical.00068.au classical.00085.au

但是当运行sox命令时,我得到了:
tony@VirtualBox:/media/sf_Dropbox/data/genres/classical$ sox classical.0000.au classical.0000.wav
sox FAIL formats: can't open input file `classical.0000.au': No such file or directory

有人知道发生了什么吗?另外,我如何整个批次而不是一个接一个地运行sox?

最佳答案

在不查找sox的文档的情况下,似乎可以使用“sox classic.00001.au classic.00001.wav”。从ls输出中,该目录中没有名为classic.0000.au的文件,但是有一个名为classic.00001.au的文件。

关于batch-file - 分别对文件进行声音交换(Sox)转换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20821052/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com