传递一个URL来一段特定的例子code从WAV文件中提取样本 [英] Passing a URL to a specific piece of example code which extracts samples from a WAV file

查看:91
本文介绍了传递一个URL来一段特定的例子code从WAV文件中提取样本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道这是否是合法的SOF访问这样一个具体问题,但在这里我去:

I don't know if it is legal on SOF to access such a specific question, but here I go:

我发现这个奇妙的件code 的这需要从WAV文件所有样品,并将其传递到一个数组。

I've found this wonderful piece of code which takes all the samples from a WAV file and passes it into an array.

在code编译,但我似乎无法找出其中传递的文件所在的参数,它的名称是。

The code compiles, but I can't seem to figure out where to pass the argument of where the file is and what its name is.

任何帮助吗?

PS如果code做什么它说,这样做,我认为这可能是有益的很多人。

PS If this code does what it says it does, I think it could be useful to a lot of people.

谢谢!

推荐答案

如果你看一下code它是从标准输入阅读(它甚至在说上面描述的code:的从标准输入读取的)。显然它的设计被用来作为一个命令行工具(或筛选),它可以与其它工具,或者使用I / O重定向独立被输送

If you look at the code it's reading from stdin (and it even says in the description above the code: "It reads from stdin"). Evidently it's designed to be used as a command line tool (or "filter") which can be piped with other tools, or standalone using I/O redirection.

这篇关于传递一个URL来一段特定的例子code从WAV文件中提取样本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆