> For the complete documentation index, see [llms.txt](https://docs.thunkable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thunkable.com/~/changes/wHhkjLVeheBnfbpghRnw/sound.md).

# Sound

The sound component plays a designated sound.

## Advanced Blocks

You can right-click any block to show an advanced version of the block.

These blocks will return an `error` output block. If there is en error with executing the block, the error block will return an error message. If not, the error block will return a null value.

![](https://1223006790-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LAn5scXl2uqUJUOqkJo-84897653%2Fuploads%2Fz8hMLOYgiQJGv02Kre4K%2Fplayadv.png?alt=media\&token=b0f8b59b-e2cf-4658-829d-789859ab8ed7)

## Play

Play a selected sound. This can be an audio file that has been uploaded to your project, or a URL that streams audio.

![](https://1223006790-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-MJWjosUAfY5JU4Fpd88%2F-MJWkRznSbvVqrAijVsL%2Fimage.png?alt=media\&token=871e150e-39a8-4da6-af61-d0b23feb14cf)

## Pause

Pause a selected audio file that is currently playing.

![](https://1223006790-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-MJWjosUAfY5JU4Fpd88%2F-MJWkaTg0Bea6aiLzC1M%2Fimage.png?alt=media\&token=c4cb402f-3619-4094-ba21-94cbaf019739)

## Resume

Resume a selected audio file that has been previously paused.

![](https://1223006790-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-MJWjosUAfY5JU4Fpd88%2F-MJWkcyti0RqoFn6vedK%2Fimage.png?alt=media\&token=67dca2b5-2833-4c5d-9182-2319418363b2)

## Stop

Stop a selected audio file that is currently playing. A sound that has been 'stopped' cannot be resumed using the [resume](/~/changes/wHhkjLVeheBnfbpghRnw/sound.md#resume) block.

![](https://1223006790-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-MJWjosUAfY5JU4Fpd88%2F-MJWkhNuVJ51U_Msyzv1%2Fimage.png?alt=media\&token=2aad5aac-7276-42f9-984b-e85face63d1d)

## Is Sound Paused?

![](https://1223006790-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-MJWjosUAfY5JU4Fpd88%2F-MJWkmGcYMlvqwGH4TMH%2Fimage.png?alt=media\&token=4fc38ae4-ff13-42d2-a131-0062b6c1c7d9)

Returns **true** if named sound file has been partially played, then paused. \
Returns **false** otherwise.

## Sound File from Recording

Records for the specified amount of seconds, then returns the recorded audio.

![](https://1223006790-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-MJWjosUAfY5JU4Fpd88%2F-MJWkpMeVUpFZefo16q8%2Fimage.png?alt=media\&token=c30eaceb-9157-4f43-a0fc-a42b075aecbf)

## Untimed Recording

The **start recording** block begins a recording.

![](https://1223006790-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-MJWjosUAfY5JU4Fpd88%2F-MJWksAQr_0hdTI-bo9-%2Fimage.png?alt=media\&token=81deda9c-a61a-4997-b333-f7dfed656d37)

The **sound file from stopped recording** block will stop the recording initiated by the **start recording** block, and return the recorded sound file.

![](https://1223006790-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-MJWjosUAfY5JU4Fpd88%2F-MJWktmCoifBHqi7Dga2%2Fimage.png?alt=media\&token=d87fd69b-1496-4973-9d5f-f105d6bce60e)
