Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
voicebot with LA
#1
Hi I was wondering if LA script can integrate with voicebot. since they are both using C#.  It's a really cool voice command app.   [Image: settings-profiles-edit-macroedit-actioneditscript.jpg]
https://www.voicebot.net/
#2
2 ways.

1. Simple. To run a LA script from VoiceBot, use the "start program" action in the VoiceBot macro.
 
Program: C:\Program Files\LibreAutomate\Au.Editor.exe
Command: "Script name.cs"

2. Use the LA automation library in a VoiceBot C# script.

If VoiceBot does not support NuGet, you can manually download LA dlls.
Download: https://www.nuget.org/packages/LibreAutomate
If your "unzip" program can't extract nupkg files, change the extension from .nupkg to .zip.
Extract these files into some folder:
- lib\net6.0-windows7.0\Au.dll
- runtimes\win-x64\native\AuCpp.dll
- runtimes\win-x64\native\sqlite.dll (need only if you'll use SQLite classes)
Then add Au.dll to the VoiceBot script references.

VoiceBot script example:
Code:
Copy      Help
using System;
using Au;

public static class VoiceBotScript
{
    public static void Run(IntPtr windowHandle)
    {

        print.it("VoiceBot");
        dialog.showInfo("Test");
    }
}
#3
Seems Au.dll can't be recognized by voicebot.


Attached Files Image(s)
   
#4
It seems you skipped the "add reference" step.
#5
yes You are right. I forgot the reference step. I have also tested vocie macro, seems like it is much powerful and high accuracy on voice commands recognition. Here is the document https://www.voicemacro.net/documentation/#Actions , Could you please have a look into it and see if the LA dlls will work with it or not? Thanks for your help.

Plugins SDK (vmAPI.dll)

VoiceMacro version 1.3 and above comes with official plugin support and SDK for C#/VB.net. I see this in their documents
#6
You can look for info in the VoiceBot forum. Au.dll is an ordinary .NET 6 or 8 dll.


Forum Jump:


Users browsing this thread: 1 Guest(s)