Author Topic: mic not "recording"  (Read 8224 times)

0 Members and 1 Guest are viewing this topic.

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
mic not "recording"
« on: September 28, 2010, 02:51:40 PM »
Thanks to the input of jitterjames i was able to use my eye toy camera as a microphone for voxcommando with very good results compared to my cheap desktop microphone.

however... i don't seem to have that major "camera usb disconnection" problem as reported by jitterjames.... my problem is different: all of a sudden... voxcommando can't hear anything... the microphone is still working if i look at the soundmeter in windows 7 controlpanel -> sounddevices -> eye camera.

When i restart voxcommando using the restart button... everything is working again! any hints on what's going on ?

Thanks

Marcel

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #1 on: September 28, 2010, 03:33:25 PM »
if you lose connection momentarily, Vox will loose the connection permanently.

However, you don't need to restart VC, you can switch to off mode (red) and then back to on (green).

I am looking into trying to detect the disconnect and reinitialize automatically.

Just for the record. This is Microsoft's fault, not mine!

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #2 on: September 28, 2010, 04:26:02 PM »
hehe... i never said that that was your fault  ;D ;D ;D

so this is a known "issue" ? it happens after every 10 minutes or so ?!

Marcel

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #3 on: September 28, 2010, 05:13:46 PM »
so this is a known "issue" ? it happens after every 10 minutes or so ?!

yes and no.  It varies from system to system.  With my regular mic in inputs it never happens.  With ps3eye it only happens when my mic goes dead which is every few days, with my logitech chat usb mic it never happens on my htpc and happens quite frequently on my laptop.

On thing you can try is to use a different usb port.  Especially try using one on the back of your machine rather than one on the front if you haven't already tried that.

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #4 on: September 28, 2010, 05:35:25 PM »
no i haven't tried that yet... i'll give it a shot asap.

will the workarround for that microsoft problem find its way into the next release? just in case changing ports doesn't solve it ;-)

keep up the awesome work!!!!

marcel

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #5 on: September 28, 2010, 07:11:58 PM »
I'm working on it now, but I'm having trouble coming up with a satisfactory solution.  In the mean time if you are using EventGhost anyway you can try setting up a timer that swtiches vox off and then off again every couple of minutes...

Is there any chance that it happens on a regular internal?  I wonder what would cause that...

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #6 on: September 29, 2010, 08:34:30 AM »
i've had the camera connected to an usb hub before (my notebook has only 3 usb ports :-( ).... anyway... i've plugged the cam into a "dedicated" onboard usb port now and so far it seems to be better.... i'll recheck this evening if the problem persists and if so... if its on a regular interval!

would you like me to give it another try on the usb hub to see if it happens at a regular interval there ?

Marcel

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #7 on: September 29, 2010, 09:10:54 AM »
I'm not too concerned with the interval issue if you are connected to a hub.  That would appear to be the source of the problem, but any information you can provide after further testing with the direct connection to your laptop usb port would be good.

Hopefully the problem will go away completely.

I will still try to come up with an auto reset solution.  If I put something together, it would then be great if you could test it with the usb hub to see if it helps.

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #8 on: September 29, 2010, 02:09:59 PM »
Hi James

Just came back from work and the computer was not recognizing my trigger word. turned vox off and back on to standby mode and everything was working as expected.

So the problem persists even with the "direct" connection.... but i do have the feeling that its better but not completely solved now.

i'll try to figure out a common interval...... although its quite hard to track.... as i'm not going to speek to the pc in a one minute interval ;-)

anything else i can be of help for you ?

marcel

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #9 on: September 29, 2010, 02:37:20 PM »
was your computer on all day?  It didn't go to sleep?  This would interrupt the connection for sure.

If you could just give me an idea if it is a matter of minutes 1/2 hour, hour etc...
« Last Edit: September 29, 2010, 02:54:31 PM by jitterjames »

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #10 on: September 29, 2010, 02:56:57 PM »
the cam is connected to my eventghost pc... which is on 24/7 with no sleep :-)

up until now i have logged the following times where the mic stopped working:

7:28 PM
7:33 PM
7:36 PM
7:45 PM
7:55 PM

marcel

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #11 on: September 29, 2010, 03:31:21 PM »
so connecting directly actually made no difference?  Or are those times from when it is connected to the hub?

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #12 on: September 29, 2010, 03:56:34 PM »
this is all directly attached.

i was running a webcam motion detection software using that cam simultaneously.... i'm now trying it WITHOUT that software running. (anyone knows a good webcam motion detection software with pan and tilt funtion ?  ??? ::) ;D)

marcel

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #13 on: September 29, 2010, 04:01:56 PM »
update: it still happens even with no other application running accessing the cam

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #14 on: September 29, 2010, 04:07:41 PM »
OK.  First of all, this will sound like an annoying request, but try another port.  I know they are probably all the same, but humor me.

Also, I'm not sure this is the best solution, but give it a whirl and let me know.  See the attached zip for a test .exe

Every 20 seconds, it checks to see how long since there was a mic event.  Usually they are every couple of seconds, though I'm not really sure why... Microsoft doesn't really document this stuff.  Anyway if it has been more than 5 seconds since the last update it should try to do a reset, similar to switching off and on.

This will probably not work well with an idle timeout if you are using that.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #15 on: September 29, 2010, 04:12:13 PM »
this is also a long shot but if you don't mind could you try changing the usb selective suspend setting to "disabled" on your windows power settings.  (see image)

I am curious to know if this helps with the old "regular" voxCommando.exe

It's such a weird thing really...

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #16 on: September 29, 2010, 05:01:32 PM »
ok... just a quick update.

cam running on different port... seemed to fix it... but right now (after about 30minutes).... mic lost again.

will try the usb suspend settings first... and after that the modified exe... okay ?

marcel

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #17 on: September 29, 2010, 05:03:24 PM »
okay, but ditch the last exe and try this one.

I am curious to know if the events show up in the command history.  It should detect usb events.  Works for me if I plug/unplug usb devices but I don't know if it will trigger anything when your mic loses connection to VC

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #18 on: September 29, 2010, 07:22:57 PM »
update:
cam mic worked very well on the second dedicated port.... but still stopped working.... just after a longer time.

tried the usb suspend settings you suggested... but unfortunately the problem remains.

i've plugged the cam into the previous dedicated port (which "looses" the connection more ofter) now and am running the second exe you've sent me..... so far the cam is still working and nothing special is displayed in the history window.

marcel

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #19 on: September 29, 2010, 07:34:24 PM »
that's odd, it should at least send a message when it attempts to reconnect to the mic.  If it is solving the problem, then it must be reconnecting.  Unless the polling has somehow prevented it from disconnecting.  But that seems unlikely to me...  Let me know if you have any updates.

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #20 on: September 29, 2010, 08:15:42 PM »
okay.... now i've got:

message 537: 0|7
@time: 30.9.2010 01:09:50
time since mic event: 0
message 537: 0|7
@time: 30.9.2010 01:09:50
time since mic event: 0

but the mic is still working !

this is my local time ;-)... so you see it's bedtime for me quite soon ;-)

marcel

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #21 on: September 29, 2010, 09:08:25 PM »
sweet dreams.  Don't talk in your sleep...  ;)

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #22 on: September 30, 2010, 10:53:54 AM »
ok... another update...

i'm still running the modified exe for now as every other attempts (with the original 0.821 voxcommando exe) still resulted in a failing mic after about 5-45minutes (depending on the port used!)...

so.....i've went to bed yesterday, without talking in my sleep ;-), and gave the mic a try this morning.... and guess what ?? IT WORKED !!.... so the mic connection survived the whole night (well... actually about 4 hours until i had to get out of bed way to soon :-) ).... i'm at work currently and will give the mic a try without touching the pc when i get home and let you know!

What is that second modified vox exe doing now ? is the implemented workaround you did "ready for production" if my mic survives lets say for about 4 days ? is there anything else i can test and/or do to pin point the exact issue to find THE final solution?

will i have any problems with idle timeouts ? i'm using an idle timeout of about 5 minutes!

Marcel

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #23 on: September 30, 2010, 11:20:44 AM »
I guess it is almost ready for production, except that I don't really know how it will interact with the idle timeouts.  Maybe you can let me know how that goes.  In the mean time I'll look at the code again to see if I can wrap my brain around their relationship.  (Men always have a hard time doing this)...

For the final version I'll have to put something in the options that lets you choose the amount of time between "checks".  If you set it to 0 it won't do checks, so users with regular wired mics or who otherwise don't have this problem won't have to incur the extra overhead (which is admittedly quite small -but still)

if you set this value to 20 it will do a check every 20 seconds to see how long it has been since the last mic event.  If it has been more than 5 seconds it will attempt to reset the mic.

this is what "the second modified vox exe" is doing now, but without the option so it is hard wired to 20 seconds.

it is also detecting any device change events, so if you plug / unplug any usb devices etc, it will (well should) check the mic status and reset if necessary even if the timer is not active. 

The only other issue right now is that when I tried to sleep / wake with this version of Vox running, Vox was frozen after wake and I had to kill the process. So I have to look into this some more.  It might just have been a freak thing, or it might be from trying to access the mic before the computer is fully awake.

Thanks for you help enthusiasm and patience Marcel.  This will no doubt benefit other users down the road. :)

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #24 on: September 30, 2010, 11:25:51 AM »
Thanks for you help enthusiasm and patience Marcel.  This will no doubt benefit other users down the road. :)

no problem! I'm glad i could be of any help!

I'll do my further "long term" tests and will as well test the behavior with idle timeouts! i'll let you know!

Marcel

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #25 on: September 30, 2010, 11:37:08 AM »
Good.  ;D

by the way, there may be short periods between the time that VC loses the connection to the mic and the next timer check, when the mic won't work.  Presumably this period could be as long as 20 seconds before Vox notices and resets the connection.

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #26 on: September 30, 2010, 02:06:13 PM »
just came back from work... and VC was working as expected!! good work james ! :-)

so far i have no issues with that 20 seconds timeframe and/or the idle timeout.

What impact would decreasing the interval down to lets say 5 or 10 seconds have ?

Marcel

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #27 on: September 30, 2010, 02:26:39 PM »
probably none, but I don't like the idea of extra code running for nothing...

try the attached version.  I will probably add this to the main download page if you don't experience any problems with it.

you can set the time in the options.  I would suggest using the largest number possible, but if you want to test using smaller numbers be my guest.

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #28 on: September 30, 2010, 03:51:25 PM »
awesome.... i'm currently trying it with a 5 second interval :-)

am i right, that this version now logs the mic event every <n> seconds specified in the option screen. i think the previous exe did log so often?

Marcel

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #29 on: September 30, 2010, 06:11:55 PM »
Ya you are right.  I will change it back so that it only logs when trying to do a reset.  I had set it like this during debugging to make sure that it was checking on schedule.

Can you also try using a much longer interval (say 60-120 seconds) to see if it still does the trick?  Just curious...

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #30 on: September 30, 2010, 08:01:22 PM »
Can you also try using a much longer interval (say 60-120 seconds) to see if it still does the trick?  Just curious...

sure!.... let me leave it running with my very short interval for the next 24 hours. after that i'll try the very long interval! ok?

can you post a vc exe without the additional debug output ?

Greets from switzerland

marcel

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #31 on: September 30, 2010, 10:36:53 PM »
just got home and pretty tired.  I'll post it tomorrow morning.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #32 on: October 01, 2010, 09:36:19 AM »
OK.  Here we are

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #33 on: October 09, 2010, 06:01:42 PM »
just a little status update:

been running vc for one week with a short interval just fine.... i'm currently running it with a long interval (120 seconds)..... so far all is fine.

with both intervals i do however have a small problem, that VC hangs maybe 1-2 times a week.... all i can do is kill the task and start it again! don't know if that's related somehow?

Marcel

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: mic not "recording"
« Reply #34 on: October 09, 2010, 07:28:37 PM »
sounds pretty good.  I don't know about the hanging, once or twice a week isn't too bad if it's running all the time, but it is still unfortunate.

Let's see if the same thing happens with the next version, and if so we can investigate further.  Because I am constantly developing and testing, I never leave VC running for that long!  I also put my machines to sleep quite often being a bit of an energy miser.

In the process of doing other things I have removed a chunk of code that 'may' have been the culprit, so fingers crossed on that one.

derelict

  • $upporter
  • Jr. Member
  • *****
  • Posts: 47
  • Karma: 0
    • View Profile
Re: mic not "recording"
« Reply #35 on: October 09, 2010, 07:34:12 PM »
smile... okay... then i'm eagerly waiting for the next version :-)

in the meantime i leave my VC running 24/7 ;-)

marcel