Skip to content

About

No description, website, or topics provided.

Resources

Stars

30 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

deepcw-engine

This repository contains the DeepCW model and a minimal example.

model_narrow.onnx is a faster, narrow-band model for multi-channel decoding. Use it with --model ../../model_narrow.onnx --metadata ../../model_narrow.onnx.json.

Preparing WAV Audio

The examples can read and resample ordinary PCM WAV files, but preparing the audio with ffmpeg makes the input explicit and repeatable:

ffmpeg -i input.wav -ac 1 -ar 3200 -sample_fmt s16 target.wav

The sample rate shown above matches the current model.onnx.json. If the metadata changes, use the sample_rate value from that file.

Python Example

Directory: examples/python

Install dependencies:

cd examples/python
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt

Run the decoder:

python decode_morse.py \
  --model ../../model.onnx \
  --metadata ../../model.onnx.json \
  --wav test.wav

Node.js Example

Directory: examples/nodejs

Install dependencies:

cd examples/nodejs
npm install

Run the decoder:

npm run decode -- \
  --model ../../model.onnx \
  --metadata ../../model.onnx.json \
  --wav test.wav

License

MIT. See LICENSE.

About

No description, website, or topics provided.

Resources

Stars

30 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors