dlpy.audio.AudioTable.load_audio_metadata¶
-
classmethod
AudioTable.
load_audio_metadata
(conn, path, audio_path, task='speech2text')¶ Pre-process and loads the metadata
Parameters: - conn : CAS
A connection object to the current session.
- path : string
Location to the input metadata file.
- audio_path : string
Location to the audio files.
- task : string, optional
Specifies the task
Note: currently only support ‘speech2text’ (default)
Returns: - CASTable
Raises: - DLPyError
If anything goes wrong, it complains and prints the appropriate message.
Examples
>>> import swat >>> from dlpy.audio import AudioTable >>> s=swat.CAS("cloud.example.com", 5570) >>> aud_table = AudioTable.load_audio_metadata(s, path="/path/to/metadata/file.txt", audio_path="/path/to/audio/file.txt") >>> aud_table.set_connection(s)