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

Record audio along with flight data #95

Open
RoystonS opened this issue Aug 27, 2021 · 2 comments
Open

Record audio along with flight data #95

RoystonS opened this issue Aug 27, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@RoystonS
Copy link

It would be really awesome if we could record audio along with the data track such that it automatically synchronises the audio at the right time during playback.

The use cases:

  1. We're currently looking at doing some synchronised/formation flying, and it would be amazing if I could record a demonstration of manoeuvres along with audio cues of when we're about to go into and come out of those manoeuvres. My partner could then bring my recording up as an AI plane and fly along in formation with them, and with my instructions. I can record a separate audio track and deliver it along with the Flight-Recorder file but synchronising up will be tricky, and will only really be doable at the start of the FR file.
  2. Tours. People could record entire flights with audio commentary along with them.
  3. Other training materials, such as VFR. "Turn right here at the Boeing building to a heading of 045..."
@nguyenquyhy
Copy link
Owner

That sounds like a great idea. Let me think how I can do that.

@nguyenquyhy nguyenquyhy added the enhancement New feature or request label Aug 28, 2021
@RoystonS
Copy link
Author

(I'm having a very quick play myself as a quick C# refresher: my C# skills used to be good but are 10 years out of date.)

Thinking aloud: streaming to a MemoryStream using NAudio looks relatively straightforward (totally ignoring all the details of selecting audio devices and so on!) and you've already done the hard work of creating a lovely zip file to contain your JSON, so adding a .wav/.ogg file in there isn't too bad. That'd work fine for short streams where you could afford to hold all the .wav data in memory, but for longer streams you'd probably want to compress on the fly rather than at save time, to reduce overall memory consumption.

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

No branches or pull requests

2 participants