≡ menu
× menu

cnnmmd

cnnmmd_xoxxox_tlkelc


Clients: Chat client (Desktop (Electron))


Implementation/Rights (Source Code/License): [※E]

https://github.com/cnnmmd/cnnmmd_xoxxox_tlkelc

※E
This code is available to the public so you can see how it works (it's still being cleaned up for collaboration).

dependence:

overview


A chat client on your desktop:

Language used: JavaScript
Development environment: Electron ( https://www.electronjs.org/ )

Installation: Manual


*
If individual settings are required before installation, modify the file according to the steps below.

Copy the following files directly into the folder for your desktop app development environment (Electron):

# Transcription source:
> cnnmmd/export/app/xoxxox/appelc/doc
 
> index.js
  params.js
 
> apptlk.htm

Setting: Setting


The individual configuration files are as follows (the contents of the files that specify addresses are also shown): [*A] [*B]

# Library reference:
>
cnnmmd/import/cnnmmd_xoxxox_tlkelc/export/app/xoxxox/appelc/doc
  params.js
    - export const UrlPrm =
'http://localhost:10002/xoxxox/lib/params_tlk.js' //
Content server address ~ port ~ parameter path - export const UrlLib =
'http://localhost:10002/xoxxox/lib/shared_tlk.js' //
Content server address ~ port ~ library path # Individual settings:
> cnnmmd/import/cnnmmd_xoxxox_tlkweb/export/web/xoxxox/lib
 
> params_tlk.js
    - adrsnd: 'http://localhost:10001/sps000' //
Relay server address~port~sending endpoint - adrrcv: 'http://localhost:10001/gpp000' //
Relay server address~port~receiving endpoint - adrchr:
'http://localhost:10002/xoxxox/img/<c>_<m>.png' //
Content server address ~ port ~ character image path (including substitution variables)

※A
To modify a plugin file, copy it to a custom folder in the same location, modify the copied file, and then update the main (export) version as needed:
# Plugin side:
> cnnmmd/import/${plugin}/export/.../${target}
# Custom folder side:
> cnnmmd/import_custom/${custom}/export/.../${target}
$ cd cnnmmd/manage/bin
$ ./remove.sh && ./append.sh

execution


Start the necessary servers and run the workflow.

Next, go to your Desktop App Development Environment (Electron) folder and run:

$ npm start

A character window will appear on your desktop - press the following button to start a conversation: [※C]

> [run] # Start conversation
> [end] # End conversation

※C
At the beginning of a conversation or when switching speakers, the speech synthesis engine takes some time (possibly minutes on a CPU) to load the dictionary and individual models - while the speech synthesis node display is active, models are being loaded or speech data is being generated.