Audio

Actions for handling audio objects

Module: implementation.datasources.audio



AudioRead

Read audio file. Subclass of Action. Type of Action[Dict[str, Any], Dict[str, Any]]


execute

Arguments:

  • input_data (Dict[str, Any]): Expected keys:

    • "path_to_file" (str): Path to audio file;

Returns:

  • Dict[str, Any]: Audio data. Expected keys:

    • "audio" (ndarray);

    • "sampling_rate" (int);




AudioWrite

Write audio data to file. Subclass of Action. Type of Action[Dict[str, Any], None]


execute

Arguments:

  • input_data (Dict[str, Any]): Expected keys:

    • "path_to_file" (str): Path to audio file;

    • "audio" (ndarray);

    • "sampling_rate" (int);



Last updated