Manual client installation on Windows
Preparing the package
- Download A.V.A.T.A.R client zip file from GitHub.
- Click on the
button and
Download zip
.
- Click on the
- Extract the
A.V.A.T.A.R-Client-master.zip
file by the "Extract or Extract here" selection. - Create a C:\packager\client directory which will be used to package the application.
-
Copy the contents of downloads\A.V.A.T.A.R-Client-master\dist to C:\packager\client.
> cd C:\A.V.A.T.A.R-Client-master/dist > xcopy /E *.* C:\packager\client
Installing the packager module
- Open a terminal DOS
-
Change to C:\packager\client_ directory:
cd C:\packager\client
-
Enter the following command to install the packager and all application modules:
C:\packager\client> npm install --save-dev @electron/packager
About deprecated modules
You can ignore messages about deprecated modules.
These messages are not important and the installation can continue. -
After a few moments, you should see the following result:
added <xxx> packages, and audited <xxx> packages in 19s <xx> packages are looking for funding run `npm fund` for details found 0 vulnerabilities
About vulnerabilities
The application is updated regularly, but it is possible that you may discover vulnerabilities.
If this is the case, installation is unaffected and can continue.
You can also contribute by leaving an issue to update the application.
Running the packager module
In order to have the latest version of Electron
for your installation, you need to retrieve the latest version from the Electron GitHub which will be used to package it.
-
Go to the Electron GitHub web site and on the right, in the Releases section, below the About section, note the latest version (as in the example image below, framed in red):
-
Run the packager:
- Suppose that the lastest version readed on the Electron site is 34.8.1, then change the XX.X.X value to the latest version in the --electron-version=XX.X.X parameter in the command line below then execute it.
3. After a few moments, you should see the following result (varies by platform):C:\packager\client> npx electron-packager . --electron-version=XX.X.X --icon=./avatar.ico --out=output
Packaging app for platform win32 x64 using electron vXX.X.X (the latest version from Electron GitHub site) Wrote new app to: output\A.V.A.T.A.R-Client-win32-x64
Installing Electron module
-
Change to the output/A.V.A.T.A.R-Client-win32-x64/A.V.A.T.A.R-Client.app/resources/app directory:
C:\packager\client> cd ./output/A.V.A.T.A.R-Client-win32-x64/resources/app
-
Enter the following command to install Electron in the package:
app> npm install electron --save-dev
- After a few moments, you should see the following result:
added <xxx> packages, changed <x> packages, and audited <xxx> packages in 13s <xx> packages are looking for funding run `npm fund` for details found 0 vulnerabilities
Deploy A.V.A.T.A.R client as an application
A.V.A.T.A.R client is now ready to be moved into its application directory.
- Create a directory for the A.V.A.T.A.R client application (e.g. C:\avatar\client).
-
Copy (or move) the contents of the output\A.V.A.T.A.R-Server-win32-x64 directory to C:\avatar\client.
> cd C:\packager\client\output\A.V.A.T.A.R-Server-win32-x64 A.V.A.T.A.R-Server-win32-x64> xcopy /E *.* C:\avatar\client
-
Add a desktop shortcut:
- Do a right click on the desktop environment
- In the menu, select
New
->Shortcut
- Select C:\avatar\client\A.V.A.T.A.R-Client.exe as element
- Click
Next
- Enter a name for the shortcut (eg. A.V.A.T.A.R Client)
- Click
Done
installing Sox
A client needs Sox to register intercoms with other clients.
- Download the latest version of Sox from SourceForge.
-
Create a C:\avatar\client\resources\app\lib\sox\win32 directory:
> mkdir C:\avatar\client\resources\app\lib\sox\win32
-
Execute the Sox installer and choose this directory as installation directory.
Warning
Expected result:
app/ lib/ sox/ win32/ sox.exe ...
Please check if sox is correctly installed !
installing FFmpeg
A client needs ffplay to play sound and music files.
- Download the latest version of FFmpeg from FFmpeg.
- In the 'Release builds' section, select the ffmpeg-release-essentials.zip version.
-
Create a C:\avatar\client\resources\app\lib\ffmpeg\win32 directory:
3. Extract and copy FFmpeg files and folders to the C:\avatar\client\resources\app\lib\ffmpeg\win32 directory:> mkdir C:\avatar\client\resources\app\lib\ffmpeg\win32
unzip <ffmpeg download> cd <unziped ffmpeg directory> xcopy /E <ffmpeg files and directories> C:\avatar\client\resources\app\lib\ffmpeg\win32
Warning
Copy only the extract application directories, not the first level of the extract directory!
Expected result:
app/ lib/ ffmpeg/ win32/ bin/ doc/ presets/
Please check if ffmpeg is correctly installed !
HTTPS certificate
The client's speech recognition uses the Web Speech API interface, which can be accessed by all browsers. As a result, a client embades a version of Google Chrome for testing when it is installed to ensure perfect compatibility with the client's version at all times.
To ensure secure communication between Google Chrome and the client, you need to create an HTTPS certificate.
Follow the first step first, then return to this page to complete the client installation.
- Create a self-signed certificate.
-
Importing the Certificate Authority to the keystore:
- In Windows search, look for “Manage user certificates”.
- In the console, select
Trusted Root Certification Authorities
->Certificates
- Right click on
Certificates
, selectAll Tasks
->Import
- In the new window, click
Next
- Then click on
Browse...
and select the C:\packager\client\certificates\CA\avatarCA.crt file - Click
Next
Place all certificates in the following store
must be checked- Verify that the
Trusted Root Certification Authorities
is added - Click
Next
- Click
Finish
The import was successful
window appears- Refresh the window by clicking
Trusted Root Certification Authorities
thenCertificates
-
Importing the host certificate to A.V.A.T.A.R client:
- Open a terminal DOS
-
Create a C:\avatar\client\resources\app\core\chrome\certificates directory:
mkdir C:\avatar\client\resources\app\core\chrome\certificates
-
Copy the host certificate to the certificates directory:
-
Change to C:\packager\client\certificates\hote
cd C:\packager\client\certificates\hote
-
Copy your <server name>.key and <server name>.crt files to this directory (these files are created in the Create a certificate for the host client step):
copy <server name>.key <server name>.crt C:\avatar\client\resources\app\core\chrome\certificates
-
Voices
A.V.A.T.A.R needs voices to dialog with you. There are two possibilities for selecting voices according to their availability:
- In the system language packs (
Local voices
) - In Chrome speech synthesis (
Remote voices
)
Platform | System voices | Google Chrome remote voices |
Comment |
---|---|---|---|
Windows | ![]() |
![]() |
No action required. System and Chrome voices are available. |
Start A.V.A.T.A.R client
Tip
Start A.V.A.T.A.R server first!
Type | Action |
---|---|
Click on the executable | 1. Open a Windows explorer and change to the C:\avatar\client directory 2. Double-click on the A.V.A.T.A.R-Client.exe file |
Shortcut | Click on the A.V.A.T.A.R client shortcut in the desktop environment |
Warning
Warning: if you have anti-virus software, it may notify you that the application does not have a valid digital signature. Click on "always authorize".
The first connection window appears:
Add required information
- Enter the information required to start the client:
- The client name.
- The server's UDP search range:
- You can enter a search range in the format XXX.XXX.XXX.XXX-XXX
- For example:
- with 192.168.2.100-110, the client will look for the server at addresses 192.168.2.100 to 110
- You can also enter the server address directly, for example: 192.168.2.100
- For example:
- You can enter a search range in the format XXX.XXX.XXX.XXX-XXX
- The UDP search port:
- By default: 3333
- This port number must be identical to the one defined in the server properties.
- If you haven't changed it on the server, leave the default port.
- Click on "Save"
- The client restarts
Adding the host certificate
-
The client window displays a warning message telling you that HTTPS has not been configured by an orange message:
-
Left-click on the client's name to open its context menu.
Warning
Always wait until the client is fully initialized before clicking on its name to open its context menu.
Wait until you see the the The HTTPS certificate is missing... message in the console. -
Click on
Edit
->Plugin Studio
: -
In
Plugin Studio
, click on thePlugins
tab, then click on theChrome
plugin. -
Click on the
Properties
tab:- Add the <server name>.key file name to the
key
property (see HTTPS certificates for more details). - Add the <server name>.crt file name to the
cert
property (see HTTPS certificates for more details). - Add the hostname to the
address
property. - Uncheck the
headless
property to display Chrome on next startup and check if the certificate is valid.
Tip
In the image, an “sb-portable” is placed in the fields.
This is just an example!
Please, put the name of your
<server name\>.crt
and<server name\>.key
files (located in the app\core\chrome\certificates), not those used to make the documentation! - Add the <server name>.key file name to the
-
Right-click and click
Save
to save the properties - Close the window (using the cross)
- Restart the client
Checking the host certificate
After restarting the client, Chrome appears.
Verify if the HTTPS certificate is valid in the Chrome browser.
Expected result (the sb-portable
hostname is only a example, you must see the hostname of your platform):
Warning
If your certificate is not valid, maybe the certificate has not been made correctly.
Repeat the certificate creation step.
If the certificate is valid, open Plugin Studio
again and change the headless
property to true to hide Chrome the next time it is started. Do not forget to save the properties:
Tip
Chrome properties are defined in a chrome
plugin so that they can be easily modified from within Plugin Studio
.
Never delete this plugin, or the client will stop working!
Mandatory parameters
You're starting the client for the first time.
Although some client properties have been configured automatically, others need to be changed quickly.
- Do a right click here and select 'Open link in new tab' to display the
Client Settings
page access. -
Then, change these parameters to complet the installation:
- Dialog language - Mandatory -
- Defines the language used for voice rules.
- By default the language is seted to "English".
- You have to define the language you want and associated voice parameters (
voice preference
andcurrent voice
).
-
Trigger keywords - Optional/Mandatory -
- Defines trigger keywords to start listening.
- The default keywords are "Sarah" and "Jarvis".
Warning
Depending on the language you've chosen, the
Trigger keywords
may not be understood.
If you've changed the dialog language, you'll need to change the trigger keyword. -
Rules - Optional/Mandatory -
- Defines phrases that are used by you or by the client when replying to you.
- At the installation, these parameters are set in "English" language.
- If you've changed the dialog language, you'll need to change the rules.
- Application language - Optional -
- Defines the language used for all graphical interfaces and application messages.
- At the installation, this parameter is set to "English" (you can choose between "English or "French").
- If "English" is the language you need, you can bypass this step.
- The background image - Optional -
- A Background image for the client. Not mandatory but so much nicer!
- Dialog language - Mandatory -
Test the installation
You can now test the installation by downloading your first plugin.