联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> Python编程Python编程

日期:2024-03-18 09:20

ECE3001 Project: Speaker Identification

Part I: Data Collection

1 Overview

The ECE3001 project is designed for speaker identification, which is a crucial task in the field of signal processing

and machine learning. Speaker identification aims to determine the identity of a person based on his/her speech

characteristics.

2 Procedures

1. Record your own voice on your phone for 10 minutes. You can read the material at the link TED talk at

a constant speed, in any language (Mandarin, English, dialect, etc.)

2. Convert the audio file to WAV format. It is recommended to use online video conversion tools like “迅捷

视频转换器”

3. Segment the audio file (the converted WAV format) into 10-second files by running the code provided

Split audio.py. Here is the detailed procedure:

(a) Make sure you have installed the required packages soundfile and librosa. If not, install them by

running the following command:

pip install soundfile librosa

(b) Put the audio file in the same directory as Split audio.py. Rename it to id<student id>.wav

(e.g., id219040062.wav). Open a terminal and navigate to this directory.

(c) Make a new folder at this directory to store the segmented audio files. The folder name is id<student id>

(e.g., id219040062).

(So far, you should have Split audio.py id<student id>.wav, and id<student id> folder in the

same directory.)

(d) Run the following command. Remember to replace ”<path to audio file>” with the actual path to

the audio file and replace ”<path to output directory>” with the directory you created in step 2.

python Split audio.py --in audio "<path to audio file>" --out dir "<path to output directory>"

1

For example, if your student id is 219040062, then the audio file should be id219040062.wav and

output folder should be id219040062. The command executed should be:

python Split audio.py --in audio "id219040062.wav" --out dir "id219040062"

(e) It will takes about 5-15 seconds to complete. Assume the student id is 219040062. Then the code

will read the audio file and save the 60 files in id219040062 folder as

? id219040062 01.wav

? · · ·

? id219040062 60.wav

4. Finally, compress the folder into a ZIP file named idstudent id.zip (i.e.,id219040062.zip) and submit

the zip file to the assignment link on the Blackboard.

2


版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp