Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to deal with Voice File in matlab GUI

Shulou Source: shulou.com Published: 2022-06-01 06:31:31 09月26日 Update

This article mainly introduces how to deal with voice files in matlab GUI, which is very detailed and has a certain reference value. Friends who are interested must finish reading it!

Advanced file I _ color-voice file

1. Read files with delimiters

In matlab, use the wizard to import external data files into the workspace of matlab, and then you can analyze and process them. If there is text content in the data file, special processing is required.

For delimited data files, you can use the function dlmread () to import into the workspace of matlab, which is called in the following format:

Results = dlmread ('filename'): this function is imported from the data file filename into the workspace of Mo Taobao

Results = dlmread ('filename','delimiter'): delimiter is the delimiter

You can use the function dlmwrite () to write the matrix in the workspace to a text file

If the delimiter of the data file is a comma (,), you can also use the function csvread () to read the data file and use the function csvwrite () to write data to the data file

two。 Read a data file with text content

In matlab, the function textread () is used to read the data file with text.

[Number,Math,English] = textread ('grade.txt','%f% f% fame dagger 3)

Number

Math

English

3. Audio file

Waveread () reads files in wav format into the workspace

Auread () reads the voice file in au format into the workspace

Sound: playing sound

Wavplay: use window's player to play sound

Soundsc: play normalized sound

Wavrecord: recordin

Wavfinfo: get information about wav sound

Aufinfo: get information about AU sound

Wavwrite: writing to wav sound fil

Auwrite: writing to AU sound fil

] = wavread ('sea. WAV')

Sound (yforward fsrewnbits)

Y=y.*2

Sound (ypjinfs)

Wavwrite (yforce fsrecource nbitsrecorder dahai2.lesson')

The above is all the contents of the article "how to deal with Voice Files in matlab GUI". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: File data function sound space work voice content text delimiter format information article processing advanced value interest guide sea boy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple Shulou Tech Info Docker OPPO Reno