Media
图像转频谱音频
将位图图像转换为以频谱还原优先的音频,并同时导出音频和一张验证频谱图预览,方便直接对比还原效果。
html· HTML 结果打开工具
快速开始
用三种语言从你的代码中调用此工具。
cURL
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/image-to-spectrogram-audio' \
-H 'Content-Type: application/json' \
-d '{"filename":"imageFile.ext","contentType":"application/octet-stream","size":12345}'
# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
--data-binary @/path/to/file.ext
# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'https://api.elysiatools.com/zh/api/tools/image-to-spectrogram-audio' \
-F 'imageFile=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'durationSeconds=8' \
-F 'sampleRate=44100' \
-F 'outputFormat=wav' \
-F 'minFrequencyHz=200' \
-F 'maxFrequencyHz=12000' \
-F 'frequencyScale=linear' \
-F 'topRowHighFrequency=true' \
-F 'timeSlices=640' \
-F 'frequencyBins=160' \
-F 'resizeMode=stretch' \
-F 'contrast=1.25' \
-F 'threshold=0.05' \
-F 'verificationPalette=magma'