使用CUEtools将音频转换为wc到flac [英] audio conversion form wav to flac using CUEtools
本文介绍了使用CUEtools将音频转换为wc到flac的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在vb.net中将wav格式转换为flac格式,为此,在挖掘互联网后,决定使用 CUEtoolFlack03 api这里是代码:
i want to convert wav format to flac format in vb.net and for this, after digging the internet, decided to use CUEtoolFlack03 api here is the code :
Imports CUETools.Codecs.FLAKE
Imports CUETools.Codecs
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim fl2 As FlakeWriter
Dim fil As New IO.FileStream("c:\MISSION2\rr.wav", IO.FileMode.Open, IO.FileAccess.ReadWrite)
fl2 = New FlakeWriter("c:\MISSION2\ttl.flac", 16, 2, 8000, fil)
Dim audioSource = New WAVReader(Nothing, fil)
Dim buff = New CUETools.Codecs.AudioPipe(audioSource, 65536)
fl2.Write()
End Sub
End Class
当我使用
confusion comes when i use write method of
flakeWriter
的写方法时,
出现混乱它需要
as it requires
buff(,) as integer
但我无法弄清楚它是什么......请帮我实现这个
but i cant figure out what it is....please help me to implement this
推荐答案
通常这表示一个多维数组。如果此链接正确,您的API中可能会有一个名为AudioBuffer的帮助程序类,您可以使用它来生成它: https://bitbucket.org/josephcooney/cloudspeech/src/8619cf699541/CloudSpeech/SpeechToText.cs [ ^ ]
Typically that would indicate a multi-dimensional array. If this link is correct, there may be a helper class in your API called AudioBuffer that you can use to produce it: https://bitbucket.org/josephcooney/cloudspeech/src/8619cf699541/CloudSpeech/SpeechToText.cs[^]
这篇关于使用CUEtools将音频转换为wc到flac的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文