title: Using files from google drive rather than uploading in colab
body: <p>I am following</p>
  <p><a href="https://colab.research.google.com/drive/1tzUmbS4lFP3xr6khSojg2vFCAx6xfW5r#scrollTo=EfkTM9TjUCRx" rel="nofollow noreferrer">https://colab.research.google.com/drive/1tzUmbS4lFP3xr6khSojg2vFCAx6xfW5r#scrollTo=EfkTM9TjUCRx</a></p>
  <p>Real Time Voice Cloning.</p>
  <p>I need help with Second section of this notebook where we have to record or upload file.
  I have multiple files in my google drive which i have mounted in colab and want to use them rather than uploading same from pc ( which is very slow )</p>
  <p>can anyone help me with solution for this code block ? like using wav/mp3 from our drive rather than uploading them via upload file button ?</p>
  <p>want to change this code to use local files rather than uploading from pc :</p>
  <pre><code>#@title Run this cell to Record or Upload Audio
  #@markdown * Either record audio from microphone or upload audio from file (.mp3 or .wav) 
  
  SAMPLE_RATE = 22050
  record_or_upload = &quot;Upload (.mp3 or .wav)&quot; #@param [&quot;Record&quot;, &quot;Upload (.mp3 or .wav)&quot;]
  record_seconds =   13111#@param {type:&quot;number&quot;, min:219, max:10, step:3}
  
  embedding = None
  def _compute_embedding(audio):
    display(Audio(audio, rate=SAMPLE_RATE, autoplay=True))
    global embedding
    embedding = None
    embedding = encoder.embed_utterance(encoder.preprocess_wav(audio, SAMPLE_RATE))
  def _record_audio(b):
    clear_output()
    audio = record_audio(record_seconds, sample_rate=SAMPLE_RATE)
    _compute_embedding(audio)
  def _upload_audio(b):
    clear_output()
    audio = upload_audio(sample_rate=SAMPLE_RATE)
    _compute_embedding(audio)
  
  if record_or_upload == &quot;Record&quot;:
    button = widgets.Button(description=&quot;Record Your Voice&quot;)
    button.on_click(_record_audio)
    display(button)
  else:
    #button = widgets.Button(description=&quot;Upload Voice File&quot;)
    #button.on_click(_upload_audio)
    _upload_audio(&quot;&quot;)
  </code></pre>
  <p>I have done :</p>
  <pre class="lang-py prettyprint-override"><code>from google.colab import drive
  drive.mount('/content/drive/')
  </code></pre>
  <p>then</p>
  <p><code>%cp -av &quot;/content/drive/MyDrive/test.wav&quot; &quot;/content/&quot;</code></p>
  <p><code>test.wav</code> is copied now I want to use that directly rather than upload or record.</p>