teticio commited on
Commit
297ea1f
1 Parent(s): d80e37b

get_sample_rate

Browse files
Files changed (1) hide show
  1. notebooks/test_model.ipynb +7 -1
notebooks/test_model.ipynb CHANGED
@@ -37,6 +37,12 @@
37
  "sys.path.insert(0, os.path.dirname(os.path.abspath(\"\")))"
38
  ]
39
  },
 
 
 
 
 
 
40
  {
41
  "cell_type": "code",
42
  "execution_count": null,
@@ -267,7 +273,7 @@
267
  "source": [
268
  "start_step = 500 #@param {type:\"slider\", min:0, max:1000, step:10}\n",
269
  "overlap_secs = 2 #@param {type:\"integer\"}\n",
270
- "track_audio, _ = librosa.load(audio_file, mono=True, sr=sample_rate)\n",
271
  "overlap_samples = overlap_secs * sample_rate\n",
272
  "slice_size = mel.x_res * mel.hop_length\n",
273
  "stride = slice_size - overlap_samples\n",
 
37
  "sys.path.insert(0, os.path.dirname(os.path.abspath(\"\")))"
38
  ]
39
  },
40
+ {
41
+ "cell_type": "markdown",
42
+ "id": "85d806d7",
43
+ "metadata": {},
44
+ "source": []
45
+ },
46
  {
47
  "cell_type": "code",
48
  "execution_count": null,
 
273
  "source": [
274
  "start_step = 500 #@param {type:\"slider\", min:0, max:1000, step:10}\n",
275
  "overlap_secs = 2 #@param {type:\"integer\"}\n",
276
+ "track_audio, _ = librosa.load(audio_file, mono=True, sr=mel.get_sample_rate())\n",
277
  "overlap_samples = overlap_secs * sample_rate\n",
278
  "slice_size = mel.x_res * mel.hop_length\n",
279
  "stride = slice_size - overlap_samples\n",