AWS S3 Utilities
audio_classifier.s3_utils
get_audio_file(audio_url)
Get audio file from AWS S3, in bucket
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
audio_url |
str
|
Audio url in S3. |
required |
Raises:
Type | Description |
---|---|
exc
|
Error fetching file. |
Returns:
Name | Type | Description |
---|---|---|
_type_ |
Pre-signed URL pointing to the audio file of the JSON annotation. |