Deepcopy story data and config changes
This commit is contained in:
parent
484542de8d
commit
43e3e52f2a
6 changed files with 100 additions and 102 deletions
|
@ -93,7 +93,7 @@ chown=pi:pi
|
|||
## Deploy / usefull commands
|
||||
|
||||
```bash
|
||||
for i in {1..6}; do rsync -av ~/hugvey/ pi@hugvey$i.local:/home/pi/hugvey/ --exclude=www --exclude=venv --exclude=local --exclude=*.pyc --exclude=.git; done
|
||||
for i in {1..26}; do echo $i; rsync -av ~/hugvey/ pi@hugvey$i.local:/home/pi/hugvey/ --exclude=www --exclude=venv --exclude=local --exclude=*.pyc --exclude=.git --exclude=recordings --exclude=/voice* --exclude=/pd; done
|
||||
```
|
||||
|
||||
```bash
|
||||
|
|
|
@ -5,7 +5,7 @@ voice:
|
|||
input_rate: 44100
|
||||
target_rate: 16000
|
||||
port: 4444
|
||||
input_name: 'AK5371'
|
||||
input_name: 'USB Audio Device'
|
||||
output_name: 'USB Audio Device'
|
||||
input_mixer: 'Mic'
|
||||
output_mixer: 'PCM'
|
||||
|
@ -13,6 +13,3 @@ voice:
|
|||
output_volume: 30
|
||||
file_address: "http://hugveycmd.local:8888"
|
||||
output_driver: pulseaudio
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ from hugvey.voice import VoiceStorage
|
|||
import multiprocessing
|
||||
from hugvey.speech.recorder import Recorder
|
||||
from pythonosc import udp_client
|
||||
import copy
|
||||
|
||||
mainLogger = logging.getLogger("hugvey")
|
||||
|
||||
|
@ -708,7 +709,7 @@ class HugveyState(object):
|
|||
await asyncio.sleep(1)
|
||||
|
||||
self.streamer.triggerStart()
|
||||
self.story.setStoryData(self.command.languages[self.language_code])
|
||||
self.story.setStoryData(copy.deepcopy(self.command.languages[self.language_code]))
|
||||
self.setLightStatus(False)
|
||||
await self.story.run(startMsgId)
|
||||
# self.story = None
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
apt-get update
|
||||
|
||||
apt-get install -y munin-node bc supervisor libsox-fmt-pulse
|
||||
apt-get install -y munin-node bc supervisor
|
||||
cp installation/rpi-internal-temp /usr/share/munin/plugins
|
||||
ln -sf /usr/share/munin/plugins/rpi-internal-temp /etc/munin/plugins/rpi-internal-temp
|
||||
rm /etc/munin/plugins/irqstats
|
||||
|
|
|
@ -7,7 +7,7 @@ voice:
|
|||
port: 4444
|
||||
chunk: 2972
|
||||
google_credentials: "../test_googlespeech/My First Project-0c7833e0d5fa.json"
|
||||
hugveys: 25
|
||||
hugveys: 26
|
||||
languages:
|
||||
- code: en-GB
|
||||
file: story_en.json
|
||||
|
|
|
@ -147,4 +147,4 @@ class Timeline{
|
|||
}
|
||||
}
|
||||
|
||||
var tl = new Timeline(ws, document.getElementById('line'), 25);
|
||||
var tl = new Timeline(ws, document.getElementById('line'), 26);
|
||||
|
|
Loading…
Reference in a new issue