• 大小: 95KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-21
  • 语言: C#
  • 标签: WAV  

资源简介

语音识别技术的第一步是将连续的声音切片,这个代码用了最简单粗暴的方法,根据音量的大小,简单切分,前提是要知道这段语音中包含了多少个字。可以支撑不同采样率,不同位数,不同声道的各种WAV格式。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            WAVReader wr = new WAVReader();
            wr.ReadWAVFile(“m-yi1-er4-san1-si4.wav“);
            wr.cut(4);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-08-05 00:47  ConsoleApplication1\
     目录           0  2017-08-05 00:47  ConsoleApplication1\.vs\
     目录           0  2017-08-05 00:47  ConsoleApplication1\.vs\ConsoleApplication1\
     目录           0  2017-08-05 00:47  ConsoleApplication1\.vs\ConsoleApplication1\v14\
     文件       46592  2017-08-05 13:27  ConsoleApplication1\.vs\ConsoleApplication1\v14\.suo
     目录           0  2017-08-05 13:57  ConsoleApplication1\ConsoleApplication1\
     文件        1024  2017-08-05 00:47  ConsoleApplication1\ConsoleApplication1.sln
     文件         189  2017-08-05 00:47  ConsoleApplication1\ConsoleApplication1\App.config
     目录           0  2017-08-05 00:52  ConsoleApplication1\ConsoleApplication1\bin\
     目录           0  2017-08-05 13:57  ConsoleApplication1\ConsoleApplication1\bin\Debug\
     文件        9728  2017-08-05 13:57  ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe
     文件         189  2017-08-05 00:47  ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe.config
     文件       22016  2017-08-05 13:57  ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.pdb
     文件       22696  2017-08-05 13:58  ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe
     文件         189  2017-08-05 00:47  ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe.config
     文件       66620  2017-08-05 13:51  ConsoleApplication1\ConsoleApplication1\bin\Debug\m-yi1-er4-san1-si4.wav
     文件       15764  2017-08-05 13:57  ConsoleApplication1\ConsoleApplication1\bin\Debug\m-yi1-er4-san1-si4_0.wav
     文件       15764  2017-08-05 13:57  ConsoleApplication1\ConsoleApplication1\bin\Debug\m-yi1-er4-san1-si4_1.wav
     文件       15092  2017-08-05 13:57  ConsoleApplication1\ConsoleApplication1\bin\Debug\m-yi1-er4-san1-si4_2.wav
     文件       20116  2017-08-05 13:57  ConsoleApplication1\ConsoleApplication1\bin\Debug\m-yi1-er4-san1-si4_3.wav
     目录           0  2017-08-05 00:52  ConsoleApplication1\ConsoleApplication1\bin\Release\
     文件        2738  2017-08-05 13:33  ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.csproj
     目录           0  2017-08-05 00:47  ConsoleApplication1\ConsoleApplication1\obj\
     目录           0  2017-08-05 13:54  ConsoleApplication1\ConsoleApplication1\obj\Debug\
     文件         587  2017-08-05 13:58  ConsoleApplication1\ConsoleApplication1\obj\Debug\ConsoleApplication1.csproj.FileListAbsolute.txt
     文件        9728  2017-08-05 13:57  ConsoleApplication1\ConsoleApplication1\obj\Debug\ConsoleApplication1.exe
     文件       22016  2017-08-05 13:57  ConsoleApplication1\ConsoleApplication1\obj\Debug\ConsoleApplication1.pdb
     文件        6870  2017-08-05 13:27  ConsoleApplication1\ConsoleApplication1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件           0  2017-08-05 00:47  ConsoleApplication1\ConsoleApplication1\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
     文件           0  2017-08-05 00:47  ConsoleApplication1\ConsoleApplication1\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
     文件           0  2017-08-05 00:47  ConsoleApplication1\ConsoleApplication1\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
............此处省略5个文件信息

评论

共有 条评论