Log do servidor¶
O servidor de reconhecimento escreve os seus logs no diretório
/var/log/cpqd/asr/server
. O arquivo de log mais recente é
asr-server.log
. Os arquivos mais antigos seguem o padrão
asr-server-<index>.log.gz
, onde index
é um inteiro sequencial. O log do
servidor ASR é configurado como explicado na seção de configuração.
Um exemplo simplificado de log do servidor ASR é mostrado em Listing 1 e uma explicação breve das mensagens, em Table 3.
Aviso
O log mostrado é apenas ilustrativo, algumas linhas foram removidas para simplificar. As mensagens de log mostradas dependem da configuração de log e do próprio funcionamento do CPqD ASR.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | WARN [18-03-21 16:21:07.843] [main] b.c.c.a.s.AsrServerApplication [ ] Starting ASR Server
WARN [18-03-21 16:21:07.845] [main] b.c.c.a.AsrEngine [ ] Loading ASR: /opt/cpqd/asr/engine/lib/libcpqd_asr.so, /opt/cpqd/asr/config/engine/engine.conf
WARN [18-03-21 16:21:09.913] [main] b.c.c.a.AsrEngine [ ] [0] ASR engine created (3.2.0)
WARN [18-03-21 16:21:09.913] [main] b.c.c.a.s.AsrServerApplication [ ] Server started after 2 secs
DEBUG [18-03-21 16:21:20.185] [dw-16] b.c.c.a.s.w.AsrServerEndpoint [ /127.0.0.1:51420] Socket opened
DEBUG [18-03-21 16:21:20.194] [dw-13] b.c.c.a.e.AsrProtocolEncoder [0 /127.0.0.1:51420] Received message:
ASR 2.3 CREATE_SESSION
INFO [18-03-21 16:21:20.205] [dw-13] b.c.c.a.s.AsrSessionBean [0 /127.0.0.1:51420] ASR Session created [handle = 201803211612800000]
DEBUG [18-03-21 16:21:20.215] [dw-13] b.c.c.a.s.AsrServer [0 /127.0.0.1:51420] Sending message ResponseMessage [session-status=IDLE, result=SUCCESS, method=CREATE_SESSION, message=null, errorCode=null, expires=60000, handle=201803211612800000]
DEBUG [18-03-21 16:21:20.226] [dw-15] b.c.c.a.e.AsrProtocolEncoder [201803211612800000 /127.0.0.1:51420] Received message:
ASR 2.3 START_RECOGNITION
Content-Length: 59
Content-Type: text/uri-list
file:///opt/cpqd/asr/tools/grammar/samples/ptbr/pizza.gram
DEBUG [18-03-21 16:21:20.494] [dw-15] b.c.c.a.s.AsrSessionBean [201803211612800000 /127.0.0.1:51420] Activating LM: file:///opt/cpqd/asr/tools/grammar/samples/ptbr/pizza.gram
DEBUG [18-03-21 16:21:20.499] [dw-15] b.c.c.a.s.c.StartRecognitionCommand [201803211612800000 /127.0.0.1:51420] Server is listening
DEBUG [18-03-21 16:21:20.501] [dw-15] b.c.c.a.s.AsrServer [201803211612800000 /127.0.0.1:51420] Sending message ResponseMessage [session-status=LISTENING, result=SUCCESS, method=START_RECOGNITION, message=null, errorCode=null, expires=60000, handle=201803211612800000]
DEBUG [18-03-21 16:21:20.505] [dw-17] b.c.c.a.e.AsrProtocolEncoder [201803211612800000 /127.0.0.1:51420] Received message:
ASR 2.3 SEND_AUDIO
LastPacket: false
Content-Length: 8000
Content-Type: application/octet-stream
-- audio content supressed --
DEBUG [18-03-21 16:21:28.035] [dw-17] b.c.c.a.e.AsrProtocolEncoder [201803211612800000 /127.0.0.1:51420] Received message:
ASR 2.3 SEND_AUDIO
LastPacket: true
Content-Length: 8000
Content-Type: application/octet-stream
-- audio content supressed --
INFO [18-03-21 16:21:28.155] [Thread-26] b.c.c.a.s.SimpleRecognitionListener [201803211612800000 ] Recognition result: [last] (0) [100] eu quero uma pizza vegetariana
DEBUG [18-03-21 16:21:28.185] [Thread-26] b.c.c.a.s.AsrServer [201803211612800000 ] Sending message RecognitionResult [result-status=RECOGNIZED, session-status=IDLE, result=RecognitionResult [lastSegment=true, segmentIndex=0, finalResult=true, alternatives=[RecognitionAlternative [text=eu quero uma pizza vegetariana, confidence=100, lm=file:///opt/cpqd/asr/tools/grammar/samples/ptbr/pizza.gram, words=[RecogWord [text=eu, confidence=100, startTime=3.09, endTime=3.21], RecogWord [text=quero, confidence=100, startTime=3.21, endTime=3.4499998], RecogWord [text=uma, confidence=100, startTime=3.4499998, endTime=3.57], RecogWord [text=pizza, confidence=100, startTime=3.57, endTime=3.99], RecogWord [text=vegetariana, confidence=100, startTime=4.020319, endTime=4.83]], interpretations=[pizza_vegetariana]]], recognitionStatus=RECOGNIZED], handle=201803211612800000]
DEBUG [18-03-21 16:21:28.537] [dw-18] b.c.c.a.e.AsrProtocolEncoder [201803211612800000 /127.0.0.1:51420] Received message:
ASR 2.3 RELEASE_SESSION
INFO [18-03-21 16:21:28.544] [dw-18] b.c.c.a.s.AsrSessionBean [201803211612800000 /127.0.0.1:51420] Session released [handle = 201803211612800000]
DEBUG [18-03-21 16:21:28.547] [dw-18] b.c.c.a.s.AsrServer [201803211612800000 /127.0.0.1:51420] Sending message ResponseMessage [session-status=null, result=SUCCESS, method=RELEASE_SESSION, message=null, errorCode=null, expires=null, handle=201803211612800000]
DEBUG [18-03-21 16:21:30.558] [dw-18] b.c.c.a.s.w.AsrServerEndpoint [ /127.0.0.1:51420] Socket closed because of CloseReason[1000,Close called]
#########################################################
Stopping asr-server at Wed Mar 21 16:21:32 UTC 2018
#########################################################
WARN [18-03-21 16:21:33.391] [Thread-12] b.c.c.a.s.AsrServerApplication [ ] Server stopped
|
Linhas |
Descrição |
---|---|
1-4 |
Inicialização do servidor ASR. |
6-11 |
Criação da sessão de reconhecimento. |
13-22 |
Início do reconhecimento e ativação do LM. |
24-36 |
Envio do áudio |
38-39 |
Construção do resultado do reconhecimento. |
41-46 |
Término da sessão de reconhecimento. |
48-51 |
Término do servidor ASR. |