i save my audio file in google storage in wav format, but when i try to load the audio using google colab, i not manage to done it.
below the example i used to load audio from google storage.
import numpy as np
import IPython.display as ipd
import librosa
import soundfile as sf
import io
from google.cloud import storage
import os
from google.colab import auth
auth.authenticate_user()
os.environ["GCLOUD_PROJECT"] = "fundpro" #project_id
BUCKET = 'parli-2020' #bucket_name
gcs = storage.Client()
bucket = gcs.get_bucket(BUCKET)
import speech_recognition as sr
for blob in bucket.list_blobs(prefix='speech/Transcribe'):
filename = 'gs://parli-2020/' + blob.name
X, sample_rate = librosa.core.load(filename)
but the error: filename cannot be found.[Errno 2] No such file or directory
my question : how to load audio from Google Storage/ how to read audio from google storage