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.

{S} [VocalDispatch]Error with new language inplementation for VocalDispatch

Featured Replies

Hello. 

I'm translating VocalDispatch to my language. Greek.  I'm using the downloaded (uneditied) file from VocalDispatch file
 

While I have changed in the .ini the locale to Greek (el-GR) as I have verified from the internet, the plugin when loads says: 

 

  Screenshot_246.png.8bad9f931b1387367ab3d1b6ebca6250.png

 

Do I need to install anything to my PC? I have tried changing the locale to el_GR but I still get the error... I don't have any XML syntax mistakes, as I have triple-checked the file and run couple of tests. 

Here is the code and the .ini settings, if they may help you:

 

Spoiler

<?xml version="1.0"?>
<VocalDispatch>
    <Phrases>
    <!-- ΜΗΝ ΑΛΛΑΞΕΤΕ ΤΑ ΟΝΟΜΑΤΑ ΕΚΤΟΣ ΑΝ ΞΕΡΕΤΕ ΤΙ ΚΑΝΕΤΕ. -->
    <!-- Priorities are the order the system checks for phrases in. Imagine this; without priority settings:
            -You say "requesting immediate backup"
            -VocalDispatch hears "requesting" and "backup" and passes the check for Code 2 backup
            -VocalDispatch never checks for Code 3 backup phrases.
        Use this system to to order things well and avoid miscommunication. Higher numbers are checked first.
        For my own use, I consider 3 and below low priority, 4 through 6 normal priority, and 7 and above high priority.
        -->

        <!-- Αποδοχή Κλήσης -->
        <Phrase Event="VocalDispatch.AcceptCallout" Priority="4">
           <Word PreferredText="πηγαίνω"/>
        </Phrase>
        <Phrase Event="VocalDispatch.AcceptCallout" Priority="4">
           <Word PreferredText="καθοδόν" AcceptedAlternates="καθ'οδών" />
        </Phrase>
        <Phrase Event="VocalDispatch.AcceptCallout" Priority="4">
           <Word PreferredText="μεταβαίνω"/>
        </Phrase>
         <Phrase Event="VocalDispatch.AcceptCallout" Priority="4">
           <Word PreferredText="ένα"/>
           <Word PreferredText="τέσσερα"/>
        </Phrase>
        <Phrase Event="VocalDispatch.AcceptCallout" Priority="4">
            <Word PreferredText="14"/>
        </Phrase>
        <Phrase Event="VocalDispatch.AcceptCallout" Priority="4">
            <Word PreferredText="ελήφθη" AcceptedAlternates="ελήφθει" />
        </Phrase>


        <!-- Κωδικός 2 -->
        <Phrase Event="VocalDispatch.RequestCode2Backup" Priority="4"> <!-- Lower priority to ensure more specific requests are checked first. -->
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="κωδικό" AcceptedAlternates="κωδικός" />
            <Word PreferredText="δύο" AcceptedAlternates="2" />
            <Word PreferredText="ενισχύσεις" AcceptedAlternates="βοήθεια" />
        </Phrase>


        <!-- Κωδικός 3 -->
        <Phrase Event="VocalDispatch.RequestCode3Backup" Priority="10">
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="βοήθεια" AcceptedAlternates="ενισχύσεις" />
        </Phrase>
        <Phrase Event="VocalDispatch.RequestCode3Backup" Priority="10">
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="κωδικό" AcceptedAlternates="κωδικός" />
            <Word PreferredText="τρία" AcceptedAlternates="τρεία,3" />
            <Word PreferredText="ενισχύσεις" AcceptedAlternates="βοήθεια" />
        </Phrase>
        <Phrase Event="VocalDispatch.RequestCode3Backup" Priority="10">
            <Word PreferredText="ένα"/>
            <Word PreferredText="είκοσι"/>
            <Word PreferredText="τέσσερα"/>
        </Phrase>
        <Phrase Event="VocalDispatch.RequestCode3Backup" Priority="10">
            <Word PreferredText="124"/>
        </Phrase>
        <Phrase Event="VocalDispatch.RequestCode3Backup" Priority="10">
            <Word PreferredText="ένα"/>
            <Word PreferredText="είκοσι"/>
            <Word PreferredText="πέντε"/>
        </Phrase>
        <Phrase Event="VocalDispatch.RequestCode3Backup" Priority="10">
            <Word PreferredText="125"/>
        </Phrase>


         <!-- Πυροβολισμοί -->
        <Phrase Event="VocalDispatch.ShotsFired" Priority="10">
            <Word PreferredText="πυροβολισμοί"/>
        </Phrase>
        <Phrase Event="VocalDispatch.ShotsFired" Priority="10">
            <Word PreferredText="πυροβολούν"/>
        </Phrase>
        <Phrase Event="VocalDispatch.ShotsFired" Priority="10">
            <Word PreferredText="πέφτουν"/>
            <Word PreferredText="πυροβολισμοί"/>
        </Phrase>
        <Phrase Event="VocalDispatch.ShotsFired" Priority="10">
            <Word PreferredText="έψιλον" AcceptedAlternates="Ε,ε" />
            <Word PreferredText="είκοσι"/>
            <Word PreferredText="τρία" AcceptedAlternates="τρεία" />
        </Phrase>
        <Phrase Event="VocalDispatch.ShotsFired" Priority="10">
            <Word PreferredText="Ε" AcceptedAlternates="ε" />
            <Word PreferredText="20"/>
            <Word PreferredText="3" AcceptedAlternates="τρεία" />
        </Phrase>
        <Phrase Event="VocalDispatch.ShotsFired" Priority="10">
            <Word PreferredText="ε23" AcceptedAlternates="Ε23" />
        </Phrase>


        <!-- Κωδικός 4, Απαλοιφή -->
        <Phrase Event="VocalDispatch.Code4" Priority="4">
            <Word PreferredText="κωδικός" AcceptedAlternates="κώδικας" />
            <Word PreferredText="τέσσερα" AcceptedAlternates="4" />
        </Phrase>
        <Phrase Event="VocalDispatch.Code4" Priority="4">
            <Word PreferredText="ένα" AcceptedAlternates="1" />
            <Word PreferredText="οκτώ " AcceptedAlternates="8,οχτώ" />
        </Phrase>
        <Phrase Event="VocalDispatch.Code4" Priority="4">
            <Word PreferredText="18"/>
        </Phrase>



        <!-- Μεταφορά οχήματος - Γερανός -->
        <Phrase Event="ArrestManager.DispatchTowTruck" Priority="5"> <!-- This (safely) uses Albo1125's Arrest Manager plugin, if installed. -->
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="γερανό"/>
        </Phrase>
        <Phrase Event="ArrestManager.DispatchTowTruck" Priority="5"> <!-- This (safely) uses Albo1125's Arrest Manager plugin, if installed. -->
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="ρυμούλκηση"/>
        </Phrase>
        <Phrase Event="ArrestManager.DispatchTowTruck" Priority="5"> <!-- This (safely) uses Albo1125's Arrest Manager plugin, if installed. -->
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="ρυμούλκηση"/>
            <Word PreferredText="αυτοκινήτου"/>
        </Phrase>



        <!-- Μεταφορά Κρατούμενου -->
        <Phrase Event="ArrestManager.RequestTransport" Priority="5"> <!-- This (safely) uses Albo1125's Arrest Manager plugin, if installed. -->
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="μεταφορά"/>
            <Word PreferredText="κρατούμενου" AcceptedAlternates="κρατουμένου" />
        </Phrase>
        <Phrase Event="ArrestManager.RequestTransport" Priority="5"> <!-- This (safely) uses Albo1125's Arrest Manager plugin, if installed. -->
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="μεταγωγή" AcceptedAlternates="μεταγωγικό" />
            <Word PreferredText="κρατούμενου" AcceptedAlternates="κρατουμένου" />
        </Phrase>
        <Phrase Event="ArrestManager.RequestTransport" Priority="5"> <!-- This (safely) uses Albo1125's Arrest Manager plugin, if installed. -->
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="ένα" AcceptedAlternates="1" />
            <Word PreferredText="δεκαέξι" AcceptedAlternates="16"/>
        </Phrase>
        <Phrase Event="ArrestManager.RequestTransport" Priority="5"> <!-- This (safely) uses Albo1125's Arrest Manager plugin, if installed. -->
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="116"/>
        </Phrase>


        <!-- Καλέσατε Ασθενοφόρο/Πυροσβεστική -->
        <Phrase Event="VocalDispatch.RequestAmbulance" Priority="5">
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="διασώστη" AcceptedAlternates="διάσωση" />
        </Phrase>
        <Phrase Event="VocalDispatch.RequestAmbulance" Priority="5">
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="ιατρική"/>
            <Word PreferredText="βοήθεια"/>
        </Phrase>
        <Phrase Event="VocalDispatch.RequestAmbulance" Priority="5">
          <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
          <Word PreferredText="ένα" AcceptedAlternates="1" />
          <Word PreferredText="είκοσι" AcceptedAlternates="20"/>
          <Word PreferredText="δύο" AcceptedAlternates="2" />
        </Phrase>
        <Phrase Event="VocalDispatch.RequestAmbulance" Priority="5">
          <Word PreferredText="122"/>
        </Phrase>
        <Phrase Event="VocalDispatch.RequestAmbulance" Priority="5">
          <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
          <Word PreferredText="εκαβ" AcceptedAlternates="ασθενοφόρο"/>
        </Phrase>

        <Phrase Event="VocalDispatch.RequestFiretruck" Priority="5">
          <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
          <Word PreferredText="πυροσβεστική" AcceptedAlternates="πυρόσβεση"/>
        </Phrase>
        <Phrase Event="VocalDispatch.RequestFiretruck" Priority="5">
          <Word PreferredText="121"/>
        </Phrase>
        <Phrase Event="VocalDispatch.RequestFiretruck" Priority="5">
          <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
          <Word PreferredText="ένα" AcceptedAlternates="1" />
          <Word PreferredText="είκοσι" AcceptedAlternates="20" />
          <Word PreferredText="ένα" AcceptedAlternates="1" />
        </Phrase>

        <Phrase Event="VocalDispatch.RequestFiretruckAndAmbulance" Priority="6"> <!-- Higher priority than the paramedic/firetruck individual checks to ensure it checks for both first. -->
          <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
          <Word PreferredText="πυροσβεστική" AcceptedAlternates="πυρόσβεση"/>
          <Word PreferredText="εκαβ" AcceptedAlternates="ασθενοφόρο"/>
        </Phrase>


        <!-- Ειδικές Δυνάμεις -->
        <Phrase Event="VocalDispatch.RequestSWAT" Priority="5">
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="εκαμ"/>
        </Phrase>
        <Phrase Event="VocalDispatch.RequestSWAT" Priority="5">
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="ειδικές" AcceptedAlternates="ειδική" />
            <Word PreferredText="δυνάμεις" AcceptedAlternates="δύναμη" />
        </Phrase>
        <Phrase Event="VocalDispatch.RequestSWAT" Priority="5">
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="την" AcceptedAlternates="τι,τη" />
            <Word PreferredText="αντιτρομοκρατική"/>
            <Word PreferredText="ομάδα"/>
        </Phrase>
        <Phrase Event="VocalDispatch.RequestSWAT" Priority="5">
            <Word PreferredText="Ε."/>
            <Word PreferredText="Κ."/>
            <Word PreferredText="Α."/>
            <Word PreferredText="Μ."/>
        </Phrase>
        <Phrase Event="VocalDispatch.RequestSWAT" Priority="5">
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="ειδική"/>
            <Word PreferredText="κατασταλτική"/>
            <Word PreferredText="αντιτρομοκρατική"/>
            <Word PreferredText="μονάδα" AcceptedAlternates="ομάδα" />
        </Phrase>
        <Phrase Event="VocalDispatch.RequestSWAT" Priority="5">
            <Word PreferredText="εκαμ"/>
        </Phrase>

        <Phrase Event="VocalDispatch.RequestAirUnitForPursuit" Priority="5">
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="αέρια" AcceptedAlternates="αέρα" />
            <Word PreferredText="μονάδα" AcceptedAlternates="βοήθεια" />
        </Phrase>
        <Phrase Event="VocalDispatch.RequestAirUnitForPursuit" Priority="5">
            <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
            <Word PreferredText="ελικόπτερο"/>
        </Phrase>


        <!-- Ενισχύσεις Καταδίωξης -->
        <Phrase Event="VocalDispatch.RequestPursuitBackup" Priority="5">
          <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
          <Word PreferredText="ενισχύσεις" AcceptedAlternates="βοήθεια" />
          <Word PreferredText="καταδίωξης" AcceptedAlternates="καταδίωξη" />
        </Phrase>
        <Phrase Event="VocalDispatch.RequestPursuitBackup" Priority="5">
          <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
          <Word PreferredText="ένα" AcceptedAlternates="1" />
          <Word PreferredText="δώδεκα" AcceptedAlternates="12" />
        </Phrase>
        <Phrase Event="VocalDispatch.RequestPursuitBackup" Priority="5">
          <Word PreferredText="χρειάζομαι" AcceptedAlternates="απαιτώ,ζητάω,στείλε,κάλεσε" />
          <Word PreferredText="112"/>
        </Phrase>
        <Phrase Event="VocalDispatch.RequestPursuitBackup" Priority="5">
          <Word PreferredText="καταδιώκω" AcceptedAlternates="διώκω,κυνηγώ" />
        </Phrase>


        <!-- Γενικά -->
        <Phrase Event="VocalDispatch.Generic" Priority="3">
            <Word PreferredText="δείξε" AcceptedAlternates="δες" />
            <Word PreferredText="με" AcceptedAlternates="εμένα" />
        </Phrase>


    </Phrases>
</VocalDispatch>

 

 

Spoiler

[General]
//This controls what language culture VocalDispatch will try to load. DO NOT change this unless you know what you are doing.
//Editing this setting also requires you to translate the script.xml file into the desired language (if it is not English).
Locale="el-GR"

//This controls whether or not VocalDispatch will display immersive messages instead of more technical (but less immersive) notifications.
ShowImmersiveMessages=true

//When true, this tells VocalDispatch to respond to unrecognized input with a generic "10-4" style response, instead of the "didn't copy" style message.
GiveGenericResponseToUnrecognizedInput=true

//This controls whether or not VocalDispatch will play a tone when it begins listening to simulate a police radio push-to-talk sound.
PlayPTTSound=true

//The distance from the player backup will spawn - lower numbers are quicker but less realistic. This only affects internal VocalDispatch functions, not any external functions VocalDispatch uses from other plugins.
MinimumSpawnDistance=300

//This must use the format that the System.Windows.Forms.Keys uses
//RMenu refers to the Right Alt key and not the actual menu key.
BeginListeningKey=RMenu
PanicModifierKey=RControlKey

//The available options here are as follows:
//None,DPadUp,DPadDown,DPadLeft,DPadRight,Start,Back,LeftThumb,RightThumb,LeftShoulder,RightShoulder,A,B,X,Y
BeginListeningButton=DPadUp
PanicModifierButton=LeftShoulder

//Your division, unit, and beat. Dispatch may use this to identify you when speaking. Valid numbers for division are 1 through 10. Valid numbers for beat are 1 through 24.
Division=01
Unit=ADAM
Beat=12

 

 

Here are my Speech Recognistion Settings: 

 

Screenshot_265.thumb.png.8f3586ca62a23c2e85ac426d31ef5a30.png

 

 

What do I have to do?!

 

Any ideas?!

 


Thank you.

Edited by AlexanderK.
Solved, Updated Title

HELLO!!     I'm a Greek guy and YouTuber.   I really like Modding and playing LSPDFR!  I'm  very familiar with Programming (Coding) and PC Hardware / Software. I'm also a Cuber ( I Solve Rubicks Cubes and other kinds).   

My YouTube Channel:  https://www.youtube.com/c/ATGGGR/

 

 

 

  • Management Team

I am not entirely sure how VocalDispatch works, but at least to me, your way of doing it seems fine. "el-GR" is a .NET supported culture so that should definitely work. I suspect that the underlying voice recognition API might not recognize the culture. Can you try this code example with your locale and see if it works?

 

https://docs.microsoft.com/en-us/dotnet/api/system.speech.recognition.speechrecognitionengine?view=netframework-4.8 

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • Author
19 hours ago, LMS said:

I am not entirely sure how VocalDispatch works, but at least to me, your way of doing it seems fine. "el-GR" is a .NET supported culture so that should definitely work. I suspect that the underlying voice recognition API might not recognize the culture. Can you try this code example with your locale and see if it works?

 

https://docs.microsoft.com/en-us/dotnet/api/system.speech.recognition.speechrecognitionengine?view=netframework-4.8 

Thank you for your answer.

I tried to buidl the code from your link, with no luck. Even with en-US. (Phe- Outdated Microsft Examples). 

Anyway, I did my reasearch to find new and updated code, to check if I can -even- run it and if it can run Greek. The thing is, as I see, there is no Grammar Files for Greek Language Speech Recognition.: 
 

Spoiler

Screenshot_267.thumb.png.41727167ffbcd1cea7847482904bb403.png

 

I found a new program to test the Speech Recognition, thru a Windows Form App. :  []
 

(ENGLISH)

Screenshot_266.thumb.png.23f95f92dc387bfd6d97d342464ce609.png
 

And it works. When I try to add the locale to Greek, 
Screenshot_268.png.6bc496eb999f7ed01382c9b5ea682378.png

ERROR ERROR ERROR ERROR. 

So, there is now Speech Engine made for Greek...


There is an option to make my own Engine for Greek, but I don't think so....


Anyway, thanks again for your answer! I appreciate it!

Alex K.

HELLO!!     I'm a Greek guy and YouTuber.   I really like Modding and playing LSPDFR!  I'm  very familiar with Programming (Coding) and PC Hardware / Software. I'm also a Cuber ( I Solve Rubicks Cubes and other kinds).   

My YouTube Channel:  https://www.youtube.com/c/ATGGGR/

 

 

 

  • Management Team
3 hours ago, AlexanderK. said:

Thank you for your answer.

 

So, there is now Speech Engine made for Greek...

There is an option to make my own Engine for Greek, but I don't think so....

 

No problem, at least we now know why it does not work.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

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.