Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Processing Tone Detection Against a Static Audio File via Command Line #9

Open
MaxwellDPS opened this issue Feb 7, 2022 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@MaxwellDPS
Copy link

Hey, it would be super awesome if you could use cli flags to pass a file and get a json response like the webhook!

@kdolan
Copy link
Contributor

kdolan commented Jul 23, 2022

@MaxwellDPS I am not sure what you mean. Can you provide an example?

@natecarlson
Copy link

I suspect that he's after the same thing I am.

I'd like to be able to feed this individual files (from trunk-recorder/etc), and get a webhook-style response back saying if it contained tones or not, and if so, which department/etc they match.

For my use-case, it would ideally be a web API in the app itself, but CLI could also work. Basically hit the API with the audio file and a configuration object with the 'detectors' configuration (so that the app itself doesn't need to have those configs hardcoded; this lets me use the same instance of fd-tone-notify to handle a bunch of different systems that may have the same tones defined), and get a response similar to what is sent for the webhook right now.

I'd handle notifications myself, and wouldn't want to record - but I could see a use case where someone would also want to be able to pass in the notification configuration, and have notifications sent from fd-tone-notify too.

@kdolan
Copy link
Contributor

kdolan commented Oct 8, 2022

@natecarlson So to clarify, you are requesting the ability to run the detection logic against an arbitrary file instead of processing a live stream of audio?

So something like this?
fdtonenotify get-tones --audio path/to/30min-audio-chunck.wav --config path/to/config.json
Output:

Tone ABC at 1:22
Tone DEF at 12:54
Tone XYZ at 24:19

@natecarlson
Copy link

@natecarlson So to clarify, you are requesting the ability to run the detection logic against an arbitrary file instead of processing a live stream of audio?

Yes.. I don't know if multiple tone detection would be necessary; for my purposes it would not.. I'd be running it against files that each contain individual transmissions.

@kdolan kdolan added the enhancement New feature or request label Oct 9, 2022
@kdolan kdolan changed the title FEATURE - Add support for checking a single file for tones Add Support for Processing Tone Detection Against a Static Audio File via Command Line Oct 9, 2022
@kdolan kdolan added the help wanted Extra attention is needed label Nov 20, 2023
@renfrewcountyscanner
Copy link

For me:
API where you could upload a file and have FDNotify process it and do it's thing.
For me this would be pretty universal and anyone could use it.

If not then yeah being able to run a command and point it to the file to run from. Would need to work in both linux and windows so everyone could use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants