API Reference¶
Quick Import Guide¶
Import all transforms directly from the main package:
from soundmentations import *
All Available Transforms¶
Shift the pitch of audio by a specified number of semitones. |
|
Randomly shift the pitch within a specified semitone range. |
|
Apply hard limiting to audio samples to prevent clipping. |
|
Fade-in effect for audio samples. |
|
Apply a fade-out effect to the end of audio samples. |
|
Trim audio to keep only the portion between start_time and end_time. |
|
Randomly trim audio by selecting a random segment of specified duration. |
|
Trim audio to keep only the portion starting from start_time to the end. |
|
Trim audio to keep only the portion from the start to end_time. |
|
Trim audio to keep only the center portion of specified duration. |
|
Compose multiple audio transforms into a sequential pipeline. |
Transforms by Category¶
Pitch Transforms¶
|
Shift the pitch of audio by a specified number of semitones. |
|
Randomly shift the pitch within a specified semitone range. |
Amplitude Transforms¶
Trim Transforms¶
|
Trim audio to keep only the portion between start_time and end_time. |
|
Randomly trim audio by selecting a random segment of specified duration. |
|
Trim audio to keep only the portion starting from start_time to the end. |
|
Trim audio to keep only the portion from the start to end_time. |
|
Trim audio to keep only the center portion of specified duration. |
Composition¶
|
Compose multiple audio transforms into a sequential pipeline. |