mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
log url for downloading
This commit is contained in:
1 parent
9730d31a60
commit
0877e13cb9
1 file changed
+4
+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}`;
|
||||
|
||||
Reference in new issue
Block a user