log url for downloading

This commit is contained in:
Brandon Thomas committed 2020-07-01 21:39:35 -04:00
1 parent 9730d31a60
commit 0877e13cb9
1 file changed
+4
@@ -66,6 +66,10 @@ class SpeakerSpectrogramAudioForm extends React.Component<Props, State> {
.then(res => res.json())
.then(res => {
const data = `data:audio/wav;base64,${res.audio_base64}`;
console.log(data);
const audioUrl = new URL(data);
console.log(audioUrl);
// var image = new Image();
// image.src = `data:image/bmp;base64,${res.spectrogram.bytes_base64}`;