Preview Audio

JSONShower supports previewing audio.

You can easily preview audio data if they can be rendered in HTML. This is achievable in 1 line of code as shown below:

from jsonshower import show_json

# Create audio documents
audio_documents = []
for i in range(1, 5):
    audio_documents.append({
    'audio': f'https://vecsearch-bucket.s3.us-east-2.amazonaws.com/voices/common_voice_en_{i}.wav',
    'name' : f'common_voice_en_{i}.wav',
    '_id': str(i)
    })

# Preview audio
show_json(
    audio_documents,
    audio_fields=["audio"]
)

After running this, you should see the following in your Jupyter Notebook:

audio.png