PvcVoiceService
Trim a PVC voice sample
Set or clear the start and end trim points that professional voice clone (PVC) training uses for one audio sample.
/voices/v1/pvcVoices/{pvcVoiceId}/samples/{sampleId}Offsets are in milliseconds. A trim takes effect only when you next train the voice.
The updateMask query parameter is required. Use snake_case field paths, for example ?updateMask=trim_start_ms,trim_end_ms. To clear an existing trim and use the full sample again, include the field in updateMask and send null in the body:
{ "trimStartMs": null, "trimEndMs": null }Trimmed-out audio still counts toward the voice's 1 GB (1,000,000,000 bytes) storage cap. It does not count toward the 600-second minimum required to train the voice. That minimum uses the duration after trimming.
Sample ID to trim, from the sampleId field returned by Upload PVC voice samples or Get a PVC voice.
Offset in milliseconds, from the start of the sample, where the audio used for training begins. Include trim_start_ms (snake_case) in updateMask to apply this field; send null to clear it.
Size of the uploaded file, in bytes. Encoded as a string, like other 64-bit integers in this API.
Detected audio format, sniffed from the file's byte content.
Available options:audio/wavaudio/webmaudio/mpeg
Base64-encoded MD5 of the stored object, for verifying upload integrity against the source file.
Whether background-noise removal is applied to this sample during training, as set by remove_background_noise on upload.
How the sample is used in training. PVC_SAMPLE_ROLE_UNSPECIFIED is treated as PVC_SAMPLE_ROLE_TRAINING (ordinary training material). PVC_SAMPLE_ROLE_GOLDEN marks a positive reference whose character training should prefer; PVC_SAMPLE_ROLE_AVOID marks an advisory negative reference. New values may be added over time.
Available options:PVC_SAMPLE_ROLE_UNSPECIFIEDPVC_SAMPLE_ROLE_TRAININGPVC_SAMPLE_ROLE_GOLDENPVC_SAMPLE_ROLE_AVOID