pull/29/head
Matthew 2020-12-01 23:56:03 -05:00
parent 92c29ed50a
commit 7ca486acba
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -21,6 +21,6 @@ export default class Misc {
}); });
await fs.writeFile(`/tmp/${fileExtension}.ogg`, response.audioContent, 'binary'); await fs.writeFile(`/tmp/${fileExtension}.ogg`, response.audioContent, 'binary');
await pbx.client.util.exec(`ffmpeg -i /tmp/${fileExtension}.ogg -af "highpass=f=300, lowpass=f=3400" -ar 8000 -ac 1 -ab 64k -f mulaw /tmp/${fileExtension}.ulaw`); await pbx.client.util.exec(`ffmpeg -i /tmp/${fileExtension}.ogg -af "highpass=f=300, lowpass=f=3400" -ar 8000 -ac 1 -ab 64k -f mulaw /tmp/${fileExtension}.ulaw`);
return `sound:${fileExtension}`; return `sound:/tmp/${fileExtension}`;
} }
} }