Code Monkey home page Code Monkey logo

linto-os-generator's People

Contributors

damienlaine avatar lokhozt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

linto-os-generator's Issues

Unable to get Linto hearing/speaking on Raspberry pi 3

Hello,
I managed to build a Raspberry image for Linto by following the documentation provided at https://github.com/linto-ai/linto-os-generator

But I am unable to make Linto hear me or speaking.

From the admin webui, I can see that the Raspberry client is seen "online" and I can ping it.
But when I try to wake it up by saying "linto" or if I try to make it speaking from the admin webui, it doesn't work.

Here is a screenshot:

linto_raspberry_tts-say-ko

Here are details about my config:

  • Stack deployed with the linto-platform-stack script.
  • Running containers and services on the Docker swarm

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 1f288eddecb0 lintoai/linto-platform-stt-server-manager:latest-unstable "./docker-entrypoint…" 2 days ago Up 2 days (healthy) 80/tcp linto_stack_linto-platform-stt-service-manager.1.q8o7uy46lq5ekn6mquhn6lzfp 02e92f414507 mongo:latest "docker-entrypoint.s…" 2 days ago Up 2 days 27017/tcp linto_stack_linto-platform-stt-service-manager-mongodb.1.lksyvma6aptuqsjhcp4jxlatm a41aa1bd2026 mongo:3.6.5 "docker-entrypoint.s…" 2 days ago Up 2 days 27017/tcp linto_stack_linto-tock-mongo.1.3nlwe1e7bqfgcxcmdtp0sox23 bbe978461656 tock/nlp_api:19.9.3 "/bin/sh -c 'java $J…" 2 days ago Up 2 days linto_stack_linto-tock-nlp-api.1.fz5woaqp42ll933y5kbjux110 92764716bddd tock/nlp_admin:19.9.3 "/root/admin-web-ent…" 2 days ago Up 2 days linto_stack_linto-tock-nlu-web.1.hul83v3dhij8ntojwxa1m796u 8d050ad75c21 tock/build_worker:19.9.3 "/bin/sh -c 'java $J…" 2 days ago Up 2 days linto_stack_linto-tock-build_worker.1.t8fy5enhhkruhd8wptrkky6do 5be92fba77a5 tock/duckling:19.9.3 "/bin/sh -c 'java $J…" 2 days ago Up 2 days linto_stack_linto-tock-duckling.1.ly3bi54a8sk5yc72vfwhk5tm1 0801b78be6eb lintoai/linto-platform-admin:latest-unstable "/docker-entrypoint.…" 2 days ago Up 2 days (healthy) 80/tcp linto_stack_linto-platform-admin.1.4wr5ppupycdymauoz7ajap1b6 7ef2e85cc7f4 lintoai/linto-platform-business-logic-server:latest-unstable "/docker-entrypoint.…" 2 days ago Up 2 days (healthy) 80/tcp linto_stack_linto-platform-bls.1.hwnc3t9n832w2ipw71gboqa2h ec80a10d0bd0 lintoai/linto-platform-mongodb-migration:latest-unstable "/docker-entrypoint.…" 2 days ago Up 2 days 80/tcp linto_stack_linto-platform-mongodb-migration.1.fofd99umyk19p4tw9qo1hzxo8 defaee05a1b4 mongo:latest "docker-entrypoint.s…" 2 days ago Up 2 days 27017/tcp linto_stack_linto-platform-mongo.1.pp9qtrqxs4td8pgi9pmvsonk3 acedf0d7304d redis:latest "docker-entrypoint.s…" 2 days ago Up 2 days 6379/tcp linto_stack_linto-platform-redis.1.o258exuq436ghqvyhs9y6n09z 1bc99e9616a9 dockersamples/visualizer:latest "npm start" 2 days ago Up 2 days (healthy) 8080/tcp linto_stack_linto-docker-visualizer.1.mjp5lmak0bl1yknzgekwhkm4s 742df9907462 iegomez/mosquitto-go-auth:latest "sh -c '/usr/sbin/mo…" 2 days ago Up 2 days 1883-1884/tcp linto_stack_linto-mqtt-broker.1.f576dchjwtgw99paua6vzc7yu b931adaac155 traefik:latest "/entrypoint.sh --ap…" 2 days ago Up 2 days 80/tcp linto_stack_linto-edge-router.1.8evfvhvbb5fdq2cn3ay7sijck

ID NAME MODE REPLICAS IMAGE PORTS uuikx7fobmfm linto_stack_linto-docker-visualizer replicated 1/1 dockersamples/visualizer:latest n4cofjpiyszk linto_stack_linto-edge-router replicated 1/1 traefik:latest *:80->80/tcp, *:443->443/tcp, *:1883->1883/tcp, *:4443->4443/tcp, *:4480->4480/tcp, *:8883->8883/tcp 99dshkgkk34z linto_stack_linto-mqtt-broker replicated 1/1 iegomez/mosquitto-go-auth:latest hwaizlwkhg1m linto_stack_linto-platform-admin replicated 1/1 lintoai/linto-platform-admin:latest-unstable dljkyzlklrsu linto_stack_linto-platform-bls replicated 1/1 lintoai/linto-platform-business-logic-server:latest-unstable g67qau2c1ge1 linto_stack_linto-platform-mongo replicated 1/1 mongo:latest vv2rqw5ism6f linto_stack_linto-platform-mongo-setup replicated 0/1 mongo:latest qivolsodzbrq linto_stack_linto-platform-mongodb-migration replicated 1/1 lintoai/linto-platform-mongodb-migration:latest-unstable uw4kyk0g2qfd linto_stack_linto-platform-overwatch replicated 0/1 lintoai/linto-platform-overwatch:latest-unstable 9fm7en53oa1e linto_stack_linto-platform-redis replicated 1/1 redis:latest x6b5veii4fw2 linto_stack_linto-platform-stt-service-manager replicated 1/1 lintoai/linto-platform-stt-server-manager:latest-unstable niygha82hhrp linto_stack_linto-platform-stt-service-manager-mongodb replicated 1/1 mongo:latest sdha4xzdorr3 linto_stack_linto-tock-build_worker replicated 1/1 tock/build_worker:19.9.3 i9yfvoy93fl4 linto_stack_linto-tock-duckling replicated 1/1 tock/duckling:19.9.3 v0a906n8jgzs linto_stack_linto-tock-mongo replicated 1/1 mongo:3.6.5 bf5v862glhoj linto_stack_linto-tock-mongo-setup replicated 0/1 mongo:3.6.5 h8yqpq9g9i7l linto_stack_linto-tock-nlp-api replicated 1/1 tock/nlp_api:19.9.3 j5ipndnpbha9 linto_stack_linto-tock-nlu-web replicated 1/1 tock/nlp_admin:19.9.3

  • Here are the messages on Mosquitto when I do a "ping" and a "speak" from the admin webui:
    {"enrolled":true,"sn":"raspberry1","connexion":"online","config":{"network":[{"name":"wlan0","ip_address":"192.168.1.195","mac_address":"b8:27:eb:e3:ee:a6","gateway_ip":"192.168.1.254","netmask":"255.255.255.0","type":"Wireless"}],"firmware":"0.0.1","ftp":{"host":"","user":"","use_secure":"","password":"","port":""},"sound":{"input":"hw:0,1","output":"pulse","volume":"100","sensibility":"100","ww-sensibility":"100","tts_lang":"fr-FR"},"disk":{"root_expand":true,"mounts":{"root":"","tmp":"","var":"","storage":""}},"mqtt":{"scope":"blk","frommetopic":"fromlinto","towardsmetopic":"tolinto","client_id":"","clean":true,"host":"linto.maison.lan","port":"1883","username":"mqtt","password":"mqtt","uselogin":true,"keepalive":"10","protocol":"MQTT","keyfile":""}},"meeting":{"sessionid":false,"sessionname":"","recording":false,"localrecording":false,"remoterecording":false},"on":"2021-03-05T13:09:52.988Z"} {} {} {"value":"bonjour"} {} {}

NB: it seems the device (raspberry1) is seen online on Mosquitto ("connexion":"online")

  • Audio setup tests on the Raspberry pi 3

-- rec /tmp/test.wav] --> OK
-- aplay -D pulse /tmp/test.wav --> OK (I can hear my voice recorded from the previous command)
-- systemctl status pulseaudio.service --> OK (I had to install the respaker 4 mic-rray drivers + activation of the embedded Raspberry sound card)

  • linto-client config on the Raspberry
    • /home/pi/linto-client/.envdefault

`# Components loading in this order, components are orchestration plugins for the LinTO client actions
COMPONENTS = localmqtt,logicmqtt,audio

Local MQTT bus setup

LOCAL_MQTT_ADDRESS = linto.maison.lan --> DNS name of the mosquitto server, running the Linto docker stack
LOCAL_MQTT_PORT = 1883
LOCAL_MQTT_KEEP_ALIVE = 15

Audio and Mic

AUDIO_FILE = /tmp/command.raw
TTS_LANG = fr-FR,en-US,en-GB,es-ES,de-DE,it-IT

Local meeting Recording

MEETING_FILES_ROOT_DIR = /media
MEETING_FILES_ROOT_DIR_FAILBACK = /home/pi
`

I noticed that other linto-client stack serices also had a .envdefault file, pointing to a local mosquito server
I changed the configuration to point to the mosquitto container provided by the linto-stack (linto.maison.lan)
But it didn't see any reference of this configuration on documentation. Do I have to let the default configuration ? (localhost)

I did these changes:

/home/pi/command/.env_default:MQTT_LOCAL_HOST=linto.maison.lan /home/pi/linto-client/.envdefault:LOCAL_MQTT_ADDRESS = linto.maison.lan /home/pi/linto_tts/.env_default:MQTT_LOCAL_HOST=linto.maison.lan

I also changed this file as requested in documentation:

/home/pi/linto-client/lib/terminal/linto.json

{ "enrolled": true, "sn": "raspberry1", --> adapted to reflect the name of the Linto client I created on the admin webui "connexion": "online", "config": { "network": [ { "name": "wlan0", "ip_address": "192.168.1.195", "mac_address": "b8:27:eb:e3:ee:a6", "gateway_ip": "192.168.1.254", "netmask": "255.255.255.0", "type": "Wireless" } ], "firmware": "0.0.1", "ftp": { "host": "", "user": "", "use_secure": "", "password": "", "port": "" }, "sound": { "input": "hw:0,1", "output": "pulse", --> adapted to the pulseaudio configuration working with aplay -D pulse "volume": "100", "sensibility": "100", "ww-sensibility": "100", "tts_lang": "fr-FR" }, "disk": { "root_expand": true, "mounts": { "root": "", "tmp": "", "var": "", "storage": "" } }, "mqtt": { "scope": "blk", "frommetopic": "fromlinto", "towardsmetopic": "tolinto", "client_id": "", "clean": true, "host": "linto.maison.lan", "port": "1883", "username": "mqtt", "password": "mqtt", "uselogin": true, "keepalive": "10", "protocol": "MQTT", "keyfile": "" } }, "meeting": { "sessionid": false, "sessionname": "", "recording": false, "localrecording": false, "remoterecording": false }, "on": "2021-03-05T02:09:59.400Z" }

I als noticed that the "client" representing the Raspberry device was red on the admin webui, even if mosquitto reports it as reachable and I can ping it from the webui.

linto_raspberry_device-red

I hope I provided enough information.

Can someone help me troobleshooting this please ?

Thank you for your help

Best regards

problem with password

Hello,

First, in order to create the OS image, I had to modified the 'generator.sh' file.
I don't know if it specific to my computer or not.
mount /dev/mapper/loop${LOOP_ID}p2 ${MNT} --> mount /dev/mapper/loop4${LOOP_ID}p2 ${MNT}
mount /dev/mapper/loop${LOOP_ID}p1 ${BOOT} --> mount /dev/mapper/loop4${LOOP_ID}p1 ${BOOT}
I added '4' after 'loop'.

Second, I have some issue to connect to the raspberry hosting Linto through ssh, password is wrong. When I try to be super user, I have the same problem. Are credentials correct? is it really pi as password?

Third, Linto is open source but what is the exact licence ?

Kind regards.

Plusieurs erreurs dans la génération d'une image

Hello,

Je teste le generator sur une Ubuntu 2020.04, et je rencontre plusieurs problèmes. J'ai ce log lorsque je fait les étapes : 1, 2, 2.1 et 4 :

jean@lin001:~/linto-os-generator$ sudo ./generator.sh raspbian_lite_latest linto_by_emvista.img
##############################
# copying NEWIMAGE
##############################
copying image file from origin...
'raspbian_lite_latest' -> 'linto_by_emvista.img'
##############################
# increasing size of NEWIMAGE
##############################
Actual size: -rw-r--r-- 1 root root 434M Jul  8 15:22 linto_by_emvista.img
Enter size to add (in Mo): 500
will add 500Mo to linto_by_emvista.img...
500+0 records in
500+0 records out
524288000 bytes (524 MB, 500 MiB) copied, 0.201729 s, 2.6 GB/s
Error: /home/jean/linto-os-generator/linto_by_emvista.img: unrecognised disk label
##############################
# check and resize partition
##############################
e2fsck 1.45.5 (07-Jan-2020)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/mapper/loop9p2

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>

resize2fs 1.45.5 (07-Jan-2020)
resize2fs: Bad magic number in super-block while trying to open /dev/mapper/loop9p2
Couldn't find valid filesystem superblock.
loop deleted : /dev/loop9
##############################
# preparing fs
##############################
mount: /home/jean/linto-os-generator/sdcard: wrong fs type, bad option, bad superblock on /dev/mapper/loop9p2, missing codepage or helper program, or other error.
mount: /home/jean/linto-os-generator/sdcard/boot: special device /dev/mapper/loop9p1 does not exist.
mount: ./sdcard/proc: mount point does not exist.
mount: ./sdcard/sys: mount point does not exist.
mount: ./sdcard/dev: mount point does not exist.
mount: ./sdcard/dev/pts: mount point does not exist.
cp: cannot create regular file './sdcard/usr/bin/.': No such file or directory
./generator.sh: line 191: ./sdcard/etc/udev/rules.d/90-qemu.rules: No such file or directory
./generator.sh: line 198: ./sdcard/etc/resolv.conf: No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.