AirTable Logger
audio_splitter.airtable_logger
AirTableLogger
A utility class to assist AirTable logging purposes. Contains attributes which holds the audio, ground truth, transcript, and language.
Attributes:
Name | Type | Description |
---|---|---|
job_name |
str
|
Job name/id. |
audio_url |
str
|
URL to audio file. |
transcripts |
str
|
Transcription received from AWS Transcribe. |
language |
str
|
Language of audio. |
category(str) |
str
|
Type of audio present, defaults to |
Source code in src/audio_splitter/airtable_logger.py
__init__(job_name, audio_url, transcript, language)
Constructor for the AirTableLogger
class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
job_name |
str
|
Job name/id. |
required |
audio_url |
str
|
URL to audio file. |
required |
transcript |
str
|
Transcription received from AWS Transcribe. |
required |
language |
str
|
Language of audio. |
required |
Source code in src/audio_splitter/airtable_logger.py
log_to_airtable()
Logs self
attributes to AirTable.