External module "spice/pitch_utils"
Functions
getPitches
- getPitches(spiceModel: GraphModel, inputData: AudioData, confidenceThreshold?: number): Promise<{ confidences: number[]; pitches: number[] }>
-
Parameters
-
spiceModel: GraphModel
-
inputData: AudioData
-
Default value confidenceThreshold: number = CONF_THRESHOLD
Returns Promise<{ confidences: number[]; pitches: number[] }>
shiftF0
- shiftF0(f0Hz: number[], f0OctaveShift?: number): Tensor<Rank>
-
Parameters
-
f0Hz: number[]
-
Default value f0OctaveShift: number = 0
Returns Tensor<Rank>
upsample_f0
- upsample_f0(buffer: number[], newSampleRateLength: number, modelMaxFrameLength: number): number[]
-
Parameters
-
buffer: number[]
-
newSampleRateLength: number
-
modelMaxFrameLength: number
Returns number[]
upsample_linear
- upsample_linear(buffer: number[], newSampleRateLength: number): number[]
-
Parameters
-
buffer: number[]
-
newSampleRateLength: number
Returns number[]