pitch shift of speech
Show older comments
Hello i am new to matlab and i just want to change voice by pitch shift or by any other method.
Thanks
Answers (1)
Brian Hemmat
on 29 Mar 2018
1 vote
Delay-Based Pitch Shifter in Audio System Toolbox provides an example of pitch shifting real-time audio.
4 Comments
Xinzhu Fang
on 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
on 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
on 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
on 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:
Categories
Find more on Measurements and Spatial Audio in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!