Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[REL] VocalDispatch - Communicate with Dispatch Verbally!

Featured Replies

  • Author

That's terrible - was Windows 7 only allowed one language per machine if not Ultimate or above?

@GamerDanger Just in case you didn't know, the last update I released for VocalDispatch should have solved the issue you reported.

Collin Biedenkapp

Unit S17 | Professional Programmer | VocalDispatch Developer

  • Replies 214
  • Views 58.1k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Is there a fix yet for anyone without an english system getting the locale error? I can set the language to "de-DE" in the .ini without changing the script file and get it to work but then it doesn't

  • turbofandude
    turbofandude

    @Cy4n1d3 Can you send the ragepluginhook.log? @cros1625 Does regular Windows Speech Recognition work for you? That's a new error... lol.

  • gamingsavage
    gamingsavage

    @turbofandude Hey I was able to find and correct my mistake. The custom phrases are now working the way the should. Thanks :) Cant wait for updates. I'm going to take the time to write down all

Posted Images

Hey, I use something like this on Flight Simulator X, its a really nice adition to any gaming experience.

It would help users a bit if you would include an option to show on screen what were the recognized words in every sentence, so users can try to "adapt" themselves to the recognition and also troubleshoot a bit.

Great mod.
Keep up the good work.

@turbofandude I still have the same problem (Yes, I already installed the en-US windows language pack). The logfile tells me this about Vocal Dispatch:

LSPD First Response: VocalDispatch, Version=1.5.2.0, Culture=neutral, PublicKeyToken=null

LSPD First Response: Creating plugin: VocalDispatch.Main

LSPD First Response: VocalDispatch: Encountered an ArgumentException.

 

Edited by DoubleP99

  • Author
8 hours ago, rbaker91 said:

Hey, I use something like this on Flight Simulator X, its a really nice adition to any gaming experience.

It would help users a bit if you would include an option to show on screen what were the recognized words in every sentence, so users can try to "adapt" themselves to the recognition and also troubleshoot a bit.

Great mod.
Keep up the good work.

There is actually a setting for this already - it's off by default for immersion. It's the "ShowImmersiveMessages".

Collin Biedenkapp

Unit S17 | Professional Programmer | VocalDispatch Developer

Just now, turbofandude said:

There is actually a setting for this already - it's off by default for immersion. It's the "ShowImmersiveMessages".

Mmkay, I'll take a look at that. Thanks.

 

-----------

Edit: Mine was already set to true. Where exactly are they supposed to appear?

Edited by rbaker91

  • Author
9 hours ago, DoubleP99 said:

@turbofandude I still have the same problem (Yes, I already installed the en-US windows language pack). The logfile tells me this about Vocal Dispatch:

LSPD First Response: VocalDispatch, Version=1.5.2.0, Culture=neutral, PublicKeyToken=null

LSPD First Response: Creating plugin: VocalDispatch.Main

LSPD First Response: VocalDispatch: Encountered an ArgumentException.

 

Alright now I'm confused. Others who have had this issue reported it solved with the last update. Was there any more to that log than that about VocalDispatch?

Collin Biedenkapp

Unit S17 | Professional Programmer | VocalDispatch Developer

so here's the error in the ragehook log

[4/21/2016 10:58:31 AM.074] LSPD First Response: VocalDispatch: Encountered an exception reading 'plugins\lspdfr\VocalDispatch\default.xml'. It was: System.NullReferenceException: Object reference not set to an instance of an object.
[4/21/2016 10:58:31 AM.075] at  . . .?(XElement )
[4/21/2016 10:58:31 AM.076] at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
[4/21/2016 10:58:31 AM.076] at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
[4/21/2016 10:58:31 AM.076] at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
[4/21/2016 10:58:31 AM.076] at  . . . (XElement )
[4/21/2016 10:58:31 AM.076] at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
[4/21/2016 10:58:31 AM.076] at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
[4/21/2016 10:58:31 AM.076] at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
[4/21/2016 10:58:31 AM.076] at  . . (String )
[4/21/2016 10:58:31 AM.144] LSPD First Response: VocalDispatch: Encountered an exception. It was: System.FormatException: 'one-of' must contain at least one 'item' element.
[4/21/2016 10:58:31 AM.145] at System.Speech.Internal.SrgsCompiler.OneOf.System.Speech.Internal.SrgsParser.IElement.PostParse(IElement parentElement)
[4/21/2016 10:58:31 AM.145] at System.Speech.Internal.GrammarBuilding.BuilderElements.CreateChildrenElements(IElementFactory elementFactory, IItem parent, IRule rule, IdentifierCollection ruleIds)
[4/21/2016 10:58:31 AM.146] at System.Speech.Internal.GrammarBuilding.ItemElement.CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds)
[4/21/2016 10:58:31 AM.146] at System.Speech.Recognition.GrammarBuilder.InternalGrammarBuilder.CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds)
[4/21/2016 10:58:31 AM.146] at System.Speech.Recognition.GrammarBuilder.CreateGrammar(IElementFactory elementFactory)
[4/21/2016 10:58:31 AM.146] at System.Speech.Recognition.GrammarBuilder.Compile(Stream stream)
[4/21/2016 10:58:31 AM.146] at System.Speech.Recognition.Grammar.LoadCfg(Boolean isImportedGrammar, Boolean stgInit)
[4/21/2016 10:58:31 AM.146] at System.Speech.Recognition.Grammar.LoadAndCompileCfgData(Boolean isImportedGrammar, Boolean stgInit)
[4/21/2016 10:58:31 AM.146] at System.Speech.Recognition.Grammar.InitialGrammarLoad(String ruleName, Object[] parameters, Boolean isImportedGrammar)
[4/21/2016 10:58:31 AM.147] at  . . ()

and my xml file attached as well.

default.xml

20 minutes ago, PoliceBike36 said:

so here's the error in the ragehook log

 

and my xml file attached as well.

default.xml

So I may have figured it out. I changed my default.xml to what was included in the download off of lspdfr and added my new phrases to a scripts.xml file. Not getting an error in game anymore, but the phrases I wanted to add still don't work. I'm soo confused.

My game also quits out completely when I requested a tow truck

[4/21/2016 11:29:14 AM.036] LSPD First Response: VocalDispatch: Beginning recognizing.
[4/21/2016 11:29:16 AM.625] LSPD First Response: VocalDispatch: Rejected: requesting towtruck
[4/21/2016 11:29:16 AM.644] LSPD First Response: VocalDispatch: Recog_RecognizeCompleted completed with one or more null values

Edited by PoliceBike36

IgnisAlienus

Ok, I definitely love this plugin xD

I have a few suggestions though.
I dont know if LSPDFR API would allow this, but is it possible to change your "Available for calls" status accordingly when saying "10-6" or "10-8 / Code Four"?

Also it would be great if you could integrate it with Police Radio for plate checks, taking the phonetic alphabet into account where "46 Edward Edward King 572"  would be translated to "46EEK572" and then passed on to police radio.

I don't know if these are farfetched, they're just ideas.

Keep up the good work.

I agree, I like having more interaction during a traffic stop. I added phrases to pretend but it's not the same.

So I make the stop and have the phrase "Show me on a 10-28" than I say "Standby for street" When they acknowledge me I tell them the street, direction/crossroad. Than I say "Standby for vehicle details." and give the dets you know "Black Cavalcade, occupied times one, license plate 38 Oscar, Zulu, Edward 344." and at the end hit the radio button and hit "Dispatch Acknowledge" and than go talk to the driver. I also added a phrase for "Came back with a warrant" to relay to dispatch if it's flagged.

  • Author
On 4/21/2016 at 0:09 PM, PoliceBike36 said:

so here's the error in the ragehook log

[4/21/2016 10:58:31 AM.074] LSPD First Response: VocalDispatch: Encountered an exception reading 'plugins\lspdfr\VocalDispatch\default.xml'. It was: System.NullReferenceException: Object reference not set to an instance of an object.
[4/21/2016 10:58:31 AM.075] at  . . .?(XElement )
[4/21/2016 10:58:31 AM.076] at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
[4/21/2016 10:58:31 AM.076] at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
[4/21/2016 10:58:31 AM.076] at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
[4/21/2016 10:58:31 AM.076] at  . . . (XElement )
[4/21/2016 10:58:31 AM.076] at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
[4/21/2016 10:58:31 AM.076] at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
[4/21/2016 10:58:31 AM.076] at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
[4/21/2016 10:58:31 AM.076] at  . . (String )
[4/21/2016 10:58:31 AM.144] LSPD First Response: VocalDispatch: Encountered an exception. It was: System.FormatException: 'one-of' must contain at least one 'item' element.
[4/21/2016 10:58:31 AM.145] at System.Speech.Internal.SrgsCompiler.OneOf.System.Speech.Internal.SrgsParser.IElement.PostParse(IElement parentElement)
[4/21/2016 10:58:31 AM.145] at System.Speech.Internal.GrammarBuilding.BuilderElements.CreateChildrenElements(IElementFactory elementFactory, IItem parent, IRule rule, IdentifierCollection ruleIds)
[4/21/2016 10:58:31 AM.146] at System.Speech.Internal.GrammarBuilding.ItemElement.CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds)
[4/21/2016 10:58:31 AM.146] at System.Speech.Recognition.GrammarBuilder.InternalGrammarBuilder.CreateElement(IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds)
[4/21/2016 10:58:31 AM.146] at System.Speech.Recognition.GrammarBuilder.CreateGrammar(IElementFactory elementFactory)
[4/21/2016 10:58:31 AM.146] at System.Speech.Recognition.GrammarBuilder.Compile(Stream stream)
[4/21/2016 10:58:31 AM.146] at System.Speech.Recognition.Grammar.LoadCfg(Boolean isImportedGrammar, Boolean stgInit)
[4/21/2016 10:58:31 AM.146] at System.Speech.Recognition.Grammar.LoadAndCompileCfgData(Boolean isImportedGrammar, Boolean stgInit)
[4/21/2016 10:58:31 AM.146] at System.Speech.Recognition.Grammar.InitialGrammarLoad(String ruleName, Object[] parameters, Boolean isImportedGrammar)
[4/21/2016 10:58:31 AM.147] at  . . ()

and my xml file attached as well.

default.xml

So I may have figured it out. I changed my default.xml to what was included in the download off of lspdfr and added my new phrases to a scripts.xml file. Not getting an error in game anymore, but the phrases I wanted to add still don't work. I'm soo confused.

My game also quits out completely when I requested a tow truck

[4/21/2016 11:29:14 AM.036] LSPD First Response: VocalDispatch: Beginning recognizing.
[4/21/2016 11:29:16 AM.625] LSPD First Response: VocalDispatch: Rejected: requesting towtruck
[4/21/2016 11:29:16 AM.644] LSPD First Response: VocalDispatch: Recog_RecognizeCompleted completed with one or more null values

Did you modify the default XML file at all?

16 hours ago, MultiPrimeGamer said:

The key ALTGR doesn't work for me. I have installed the German patch correctly but the log says, that there is something wrong with grammar. Could you help me please?

RagePluginHook.log

There may still be a bug in my code for the locale loading... I will review.

Collin Biedenkapp

Unit S17 | Professional Programmer | VocalDispatch Developer

On 24.3.2016 at 4:41 AM, turbofandude said:

There may still be a bug in my code for the locale loading... I will review.

Ok thank you. I already tried the normal English version, but ALTGR doesn't work here too. There is no sound.

Edited by MultiPrimeGamer

I've added a few commands, if anyone is interested:

 

        <Phrase Event="VocalDispatch.Code4" Priority="4">
            <Word PreferredText="code" AcceptedAlternates="coded,cold,hold" />
            <Word PreferredText="four" AcceptedAlternates="4,for" />
        </Phrase>
        <Phrase Event="VocalDispatch.Status" Priority="3">
            <Word PreferredText="show" AcceptedAlternates="i,gonna" />
            <Word PreferredText="me" AcceptedAlternates="am,be" />
        </Phrase> 
		<Phrase Event="VocalDispatch.Status" Priority="3">
            <Word PreferredText="suspect" />
            <Word PreferredText="crashed" AcceptedAlternates="mva,crash" />
        </Phrase>		
		<Phrase Event="VocalDispatch.Status" Priority="3">
            <Word PreferredText="suspect" />
            <Word PreferredText="ten" />
			<Word PreferredText="fifty" />
        </Phrase>
		<Phrase Event="VocalDispatch.Status" Priority="3">
            <Word PreferredText="suspect" />
            <Word PreferredText="1050" />
        </Phrase>
		<Phrase Event="VocalDispatch.Status" Priority="3">
            <Word PreferredText="suspect" />
            <Word PreferredText="foot" AcceptedAlternates="bailed" />
        </Phrase>

Its just a few events: suspect crashed, suspect bailed, suspect on foot, etc... It doesn't do anything, but dispatch answers "roger that" or "10-4".
Also I added COLD to code4 command, since I could not for the life of me get it to understand "code", it always showed "cold" instead.

Would be great if someday dispatch answers these commands accordingly.

 

~~~~~~~~

Edit:

Btw, sometimes if you keep the PTT button down but dont say anything the PTT tone will keep looping.
Also it seems like it has a limit of words(?), sometimes you get a "Voice recognition failed" message if you say a phrase that has the correct keywords but add a few other words at the end or beginning of the sentence.

Edited by rbaker91

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.