pitch shift of speech

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
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

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);
```
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.
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?
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:

Sign in to comment.

Categories

Find more on Measurements and Spatial Audio in Help Center and File Exchange

Products

Asked:

on 3 Sep 2015

Commented:

on 3 Jan 2021

Community Treasure Hunt

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

Start Hunting!