Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deal with Voice File in matlab GUI

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report