mirror of
https://github.com/smittix/intercept.git
synced 2026-07-07 09:08:12 -07:00
Fix audio dependency to use ffmpeg instead of sox
The Listening Post actually uses ffmpeg for audio encoding, not sox. Updated all documentation, setup scripts, and code to reflect this: - Removed unused find_sox() function from listening_post.py - Simplified tools endpoint to only check for ffmpeg - Updated CHANGELOG, README, HARDWARE.md, Dockerfile - Fixed setup.sh to check for ffmpeg - Updated frontend warnings to mention ffmpeg 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1780,7 +1780,7 @@ sudo make install</code>
|
||||
.then(data => {
|
||||
const missingTools = [];
|
||||
if (!data.rtl_fm) missingTools.push('rtl_fm');
|
||||
if (!data.sox) missingTools.push('sox (audio player)');
|
||||
if (!data.ffmpeg) missingTools.push('ffmpeg (audio encoder)');
|
||||
|
||||
if (missingTools.length > 0) {
|
||||
document.getElementById('airbandBtn').disabled = true;
|
||||
@@ -1825,7 +1825,7 @@ sudo make install</code>
|
||||
<div style="font-weight: bold; margin-bottom: 6px;">⚠️ Airband Listen Unavailable</div>
|
||||
<div>Missing required tools: <strong>${toolList}</strong></div>
|
||||
<div style="margin-top: 8px; font-size: 10px; opacity: 0.9;">
|
||||
Install with: <code style="background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 3px;">sudo apt install rtl-sdr sox</code> (Debian) or <code style="background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 3px;">brew install librtlsdr sox</code> (macOS)
|
||||
Install with: <code style="background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 3px;">sudo apt install rtl-sdr ffmpeg</code> (Debian) or <code style="background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 3px;">brew install librtlsdr ffmpeg</code> (macOS)
|
||||
</div>
|
||||
<button onclick="this.parentElement.remove()" style="position: absolute; top: 5px; right: 8px; background: none; border: none; color: white; cursor: pointer; font-size: 14px;">×</button>
|
||||
`;
|
||||
|
||||
@@ -8775,7 +8775,7 @@
|
||||
// ============================================
|
||||
|
||||
let isAudioPlaying = false;
|
||||
let audioToolsAvailable = { rtl_fm: false, audio_player: false };
|
||||
let audioToolsAvailable = { rtl_fm: false, ffmpeg: false };
|
||||
|
||||
// Web Audio API for visualization
|
||||
let visualizerContext = null;
|
||||
@@ -8919,14 +8919,14 @@
|
||||
.then(r => r.json())
|
||||
.then(data => {
|
||||
audioToolsAvailable.rtl_fm = data.rtl_fm;
|
||||
audioToolsAvailable.can_stream = data.can_stream;
|
||||
audioToolsAvailable.ffmpeg = data.ffmpeg;
|
||||
|
||||
const warnings = [];
|
||||
if (!data.rtl_fm) {
|
||||
warnings.push('rtl_fm not found - install rtl-sdr tools');
|
||||
}
|
||||
if (!data.can_stream) {
|
||||
warnings.push('No audio encoder (ffmpeg/sox) - install: brew install ffmpeg (macOS) or apt install ffmpeg (Linux)');
|
||||
if (!data.ffmpeg) {
|
||||
warnings.push('ffmpeg not found - install: brew install ffmpeg (macOS) or apt install ffmpeg (Linux)');
|
||||
}
|
||||
|
||||
const warningDiv = document.getElementById('audioToolsWarning');
|
||||
|
||||
Reference in New Issue
Block a user