CognxSafeTrack
feat: audit and hardening of audio pipeline, AI localization, and WhatsApp UX improvements
9eff59c | const fs = require('fs'); | |
| async function test() { | |
| const audioData = "UklGRiQAAABXRUJQRk1UIAoAAAABAEgA/wAAACQAAABHRU5EIQAAAA=="; // Dummy | |
| try { | |
| const res = await fetch('https://whatsapp-worker-production-0bc0.up.railway.app/v1/ai/transcribe', { | |
| method: 'POST', | |
| headers: { | |
| 'Content-Type': 'application/json', | |
| 'Authorization': `Bearer sedap_admin_987654321` | |
| }, | |
| body: JSON.stringify({ audioBase64: audioData, filename: 'msg.ogg' }) | |
| }); | |
| const text = await res.text(); | |
| console.log("Status:", res.status); | |
| console.log("Response:", text); | |
| } catch(e) { | |
| console.error(e); | |
| } | |
| } | |
| test(); | |