Hello i am new to matlab and i just want to change voice by pitch shift or by any other method.
Thanks

Antworten (1)

Brian Hemmat
Brian Hemmat am 29 Mär. 2018

1 Stimme

Delay-Based Pitch Shifter in Audio System Toolbox provides an example of pitch shifting real-time audio.

4 Kommentare

Xinzhu Fang
Xinzhu Fang am 23 Sep. 2020
i installed audio toolbox. but when I run the examples here https://www.mathworks.com/help/audio/ref/shiftpitch.html
I get
```
'shiftPitch' is not found in the current folder or on the MATLAB path, but exists in:
/Users/xzfang/Documents/MATLAB/Examples/R2019a/audio/DelayBasedPitchShifterExample
Change the MATLAB current folder or add its folder to the MATLAB path.
Error in shift_pitch (line 6)
audioOut = shiftPitch(audioIn,nsemitones);
```
Brian Hemmat
Brian Hemmat am 23 Sep. 2020
The shiftPitch function was introduced in R2019b. Based on the command-line output in your comment, you have R2019a.
Because the shiftPitch function is not found on path, MATLAB searches the documentation for examples that have the same name. The example, DelayBasedPitchShifterExample, has a function named shiftPitch in R2019a (since renamed to avoid confusion), so MATLAB points you to it.
Long story short: you can either use the example pitch shifting function included in the delay-based shifter example, or you would need to update to a newer version of MATLAB to use the full shiftPitch feature.
Xinzhu Fang
Xinzhu Fang am 1 Jan. 2021
Thank you for the reply (just saw it, i expected to get an email notification when someone replies)
i updated matlab and it works now. how do find out which pakcage a function is introduced in?
Brian Hemmat
Brian Hemmat am 3 Jan. 2021
If you scroll down to near the bottom of the documention of a function, there is a line that says "Introduced in ____". It's after the "see also" section:

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Measurements and Spatial Audio finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 3 Sep. 2015

Kommentiert:

am 3 Jan. 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by