> For the complete documentation index, see [llms.txt](https://utca.knowledgator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://utca.knowledgator.com/datasources/audio.md).

# Audio

Actions for handling audio objects

## Module: [implementation](/framework-structure.md#implementation).datasources.audio

***

***

## <mark style="color:green;">AudioRead</mark>

Read audio file. Subclass of [**Action**](/core/action.md)**.** Type of [**Action**](/core/action.md)**\[Dict\[str, Any], Dict\[str, Any]]**

***

### <mark style="color:blue;">execute</mark>

#### Arguments:

* <mark style="color:orange;">**input\_data**</mark>**&#x20;(Dict\[str, Any]):**\
  Expected keys:&#x20;
  * <mark style="color:red;">**"path\_to\_file"**</mark>**&#x20;(str):** Path to audio file;

#### Returns:

* **Dict\[str, Any]:** Audio data. \
  Expected keys:&#x20;
  * <mark style="color:red;">**"audio"**</mark>**&#x20;(ndarray);**&#x20;
  * <mark style="color:red;">**"sampling\_rate"**</mark>**&#x20;(int);**

***

***

***

## <mark style="color:green;">AudioWrite</mark>

Write audio data to file. Subclass of [**Action**](/core/action.md)**.** Type of [**Action**](/core/action.md)**\[Dict\[str, Any], None]**

***

### <mark style="color:blue;">execute</mark>

#### Arguments:

* <mark style="color:orange;">**input\_data**</mark>**&#x20;(Dict\[str, Any]):**\
  Expected keys:&#x20;
  * <mark style="color:red;">**"path\_to\_file"**</mark>**&#x20;(str):** Path to audio file;
  * <mark style="color:red;">**"audio"**</mark> **(ndarray);**
  * <mark style="color:red;">**"sampling\_rate"**</mark>**&#x20;(int);**

***

***
