I try to detect some audio signals(pure sine) in near real time. I know that I will get some latency.
In the start I try to detect some tones of 10Khz in a duration of 75ms. That is achieved by a Goertzel filter. What is the prefered technique for that issue? I thought of making a little buffer that will always be detected by the Goertzel, but this sounds bad because I don't know when the the signal starts. Can you give me some help or idea ? Thanks
You'll have to do something like I am trying to do here (please do contact me if you fix my inaccuracy issues though) NAudio WaspiLoopback Goertzel
You can also take a look at: Decoding DTMF from a WAV file which have helped me a lot in getting something that can barely work, but it's a pretty good start.
Related
I would like to know if there is a way to save MultiSourceFrames to disk in such a way that I can load them up to use later.
The reason for this is because I have far too much processing to do on each frame to reasonably perform this live. I have no need to process the frames in real time so, I would like to find a way to save a number of frames to disk (or even to memory?) and perform my processing afterwards.
So far, I have tried storing these in a List<MultiSourceFrame> but, for each frame, I find that I can't then acquire the ColourFrame component (for example), presumably because the whole object structure is not saved.
Potential Solution Idea?
I know that Kinect Studio is able to save .xed files but I really need to be able to do this from code. Moreover, I don't know whether I can turn the .xed file back into a collection of MultiSourceFrames.
I'd be really grateful if anyone can help me out with this problem! I promise to upvote/accept helpful answers!
You can't just save the MultiSourceFrame object. Instead, you should extract the (raw) data you need from the frames and save that.
I am completly new with DirectShow and filters. I was reading some articles, tried some examples with C# and I've used libraries like AForge or DirectShow.NET. I've excluded AForge from my project because of huge latency and bad performance in my project. I've found good example where DirectShow.NET was used and after some refactoring performance of the code was fair enought so I want to try with that.
I couldn't make ISambleGrabber to work so now I'm trying to use GraphEditPlus, connect the graph and generate C# code as example for future use, but...
I cannot find VideoInputDevices filter there, I need to start Previewing and Capturing from webcam, but I cannot find it on the list. It is shown on VLC and is working with AForge and DirectShow.NET.
Mayebe I'm blind or I'm missing something? Any hints?
Yup, I'm blind - it's named here as Video Capture Sources which I haven't seen before.
I´m using the GMAP.net library in a project and I found it was a powerful tool. It´s cache facility made it a real profit to my project. Anyway, I need if someone can tell me a little bit of how that cache works. As far as I tested it, I can see that it pre-allocates space (in my case about 200 mb on SQLITE file), so I started doing some test seeing how it worked, and it turns out it works really well, but in some cases I have been viewing maps that haven´t been cached. I don´t know if I have to spent some time with the position on the map so It can be cached or something like that. Does the tile cache file size increases with the time?, or it just keeps the prealocated size?.
Thanks in advance for any possible answer.
I've been doing some research on this same topic. I learned that the application by default has a gmdb of 256mb. This doesnt mean that there is 256mb of cached map. It just creates room for the cache data. Look at this post by Radio man for more clarity. Hope this helps. If you find more info post if for others because there is a lot of missing info on this topic.
http://greatmaps.codeplex.com/discussions/274628
I'm trying to get any temp/fanspeed/accelerometer readings from my motherboard in C#
I have done a lot of research and I know its not easy, but it has to be possible to get something I can work with.
I have tried using motherboardmonitor.net but I can't figure out how to incorporate the dll into my program.
I have tried "using motherboardmonitor" with the motherboardmonitor.DLL i downloaded. But there is absolutely no documentation on how to use it. Im just fumbling around with it at the moment to no avail.
And I have tried using the sensor.dll but I dont think i have enough knowledge to go any further.
Here's a working example of what you are trying to achieve. Hope it's helpful.
http://forums.whirlpool.net.au/archive/1723879
It might not be a full solution, but it should get you started in the right direction.
The following is usefull too:
http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/34f0fa55-567b-4a98-a29d-b92a5c9b5f8f/
CPU temperature monitoring
I have searched how to use SILVERLIGHT to record video for days but got no luck.
Most articles related to SL only talk about how to record audio or snap a picture rather than recording a video file and save it somewhere.
And I found there is no resources about it on Internet(I am surprised!!!)!
So could you provide me an example code with proper explanation?
I am waiting for it.
PS: I do not want to use Flesh as none iPhone nor iPAD supports it.
Thanks
Fortunately, Mike Taulty's source code can easily be updated to work with Silverlight 5. You can download the fixed source code and try it out (Disclaimer: all code courtesy to Mike Taulty, I merely fixed SL5 compatability and ran a cleanup). Use your favorite diff tool to see the changes I made.
I have tested it, and it generates video files that can be viewed in VLC media player (after selecting build index to fix the corrupted index). As the file format is not 100% correct, the files can not be opened in Windows Media Player etc... but I'm sure that can be fixed.
You should, however, be aware of the fact that Silverlight is not supported on iPhone, iPad, Android, and Windows Phone (Windows Phone apps are made on a special version of Silverlight, but can not run Silverlight applications in the browser).
Unfortunately, after undergoing hundreds of hours researching on the possible solution, I finally found the answer in a book called: Pro Silverlight 4 in C# (Matthew MacDonale, APress).
According what is said on the page 436, although you can do it with Silverlight 4 (you have to write your own file header helper, store the row data as byte arrays and later on you have to convert them into a raw video data and what is worse is the audio and video are separated.), it is just not practical and worthy to do it. Because it requires reams of complex, handwritten code to convert it, and the conversion process is computationally expensive, which makes it extremely difficult to do in real time.
So I guess this would be the conclusion of my question. Now what seems still make sense for me is to find out why Microsoft doesn't support it and what is the new technology which is going to be used/ has been used to replace the SL.
Is it HTML5? But as far as I know, there is only a video tag in HTML which can only be used as a video player, but no tag to support to get the access of a web camera and save the captured video+audio at the same time as one file onto somewhere which could be a local hard drive or a network storage.
I hope all dear you could come up with some thoughtful advice.
I am going to leave this question un-answered for a few days to see whether there could be someone who can come up with some fantastic solution.
Thanks again.