Log de reconhecimento¶
O motor de reconhecimento escreve os seus logs no diretório
/var/log/cpqd/asr/engine. O arquivo de log mais recente é
asr-engine.log. Os arquivos mais antigos seguem o padrão
asr-engine.log.<index>, onde index é um inteiro sequencial. O log do
motor ASR é configurado como explicado na seção de configuração.
Um exemplo simplificado de log do motor ASR é mostrado em Listing 2 e uma explicação breve das mensagens, em Table 4.
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 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 52 53 54 55 56 57 58 59 60 61  | [*][ warning ] [tid=6425] [] [Engine] Library Version: 3.2.0
[*][  info   ] [tid=6425] [] [AcousticModel] Type: [Nnet3]
[*][  info   ] [tid=6425] [] [AcousticModel] Created acoustic model: file source="/opt/cpqd/asr//lang//default/am/6.dat"
[*][ warning ] [tid=6425] [] [Engine] Log level: debug
[*][ warning ] [tid=6425] [] [Engine] Max licenses: 2
[*][ warning ] [tid=6425] [] [Engine] License Type: server
[*][ warning ] [tid=6425] [] [Engine] License ID: XXXXXXXXXXXXXXXX
[*][ warning ] [tid=6425] [] [Engine] License Server Address: license38.cpqd.com.br:443
[*][  info   ] [tid=6425] [] [API] Entering "asr_createSession"
[*][  info   ] [tid=6425] [201805021718500000] [Session] Sampling frequency: 8000.00
[*][  info   ] [tid=6425] [201805021718500000] [Session] Bytes per sample: 2
[*][  info   ] [tid=6425] [201805021718500000] [Config] Tuning Log: Enabled
[*][  info   ] [tid=6425] [201805021718500000] [Config] NoInputTimeout: Enabled
[*][  info   ] [tid=6425] [201805021718500000] [Config] No Input Timeout(ms): 10000
[*][  info   ] [tid=6425] [201805021718500000] [Config] RecognitionTimeout: Enabled
[*][  info   ] [tid=6425] [201805021718500000] [Config] Recognition Timeout(ms): 30000
[*][  info   ] [tid=6425] [201805021718500000] [Config] PartialResult: Disabled
[*][  info   ] [tid=6425] [201805021718500000] [Config] StartInputTimers: Enabled
[*][  info   ] [tid=6425] [201805021718500000] [API] Leaving "asr_createSession": session=201805021718500000
[*][  info   ] [tid=6425] [201805021718500000] [API] Entering "asr_loadLMFromURI": uri="file:///opt/cpqd/asr/samples/grammar/ptbr/pizza.gram"
[*][  info   ] [tid=6425] [201805021718500000] [ModelCache] Grammar: 'file:///opt/cpqd/asr/samples/grammar/ptbr/pizza.gram' Compiled and loaded
[*][  debug  ] [tid=6425] [201805021718500000] [LanguageModel] TimeToIdle defined to 600 seconds for file:///opt/cpqd/asr/samples/grammar/ptbr/pizza.gram
[*][  debug  ] [tid=6425] [201805021718500000] [LanguageModel] TimeToLive defined to 3600 seconds for file:///opt/cpqd/asr/samples/grammar/ptbr/pizza.gram
[*][  info   ] [tid=6425] [201805021718500000] [API] Leaving "asr_loadLMFromURI"
[*][  info   ] [tid=6942] [] [API] Entering "asr_activateLMFromURI": uri="file:///opt/cpqd/asr/samples/grammar/ptbr/pizza.gram"
[*][  debug  ] [tid=6942] [] [API] Language model "file:///opt/cpqd/asr/samples/grammar/ptbr/pizza.gram" activated
[*][  info   ] [tid=6942] [] [API] Leaving "asr_activateLMFromURI"
[*][  info   ] [tid=6942] [] [API] Entering "asr_startRecognition"
[*][  info   ] [tid=6942] [] [SessionPipeline] TuningLog.saveInAudio: Enabled
[*][  info   ] [tid=6942] [] [SessionPipeline] TuningLog.saveEpAudio: Enabled
[*][  info   ] [tid=6942] [] [SessionPipeline] RemoveOffset: Disabled
[*][  info   ] [tid=6942] [] [SessionPipeline] Endpointer: Enabled
[*][  debug  ] [tid=6942] [] [Endpointer] endpointer.startThreshold = 100
[*][  debug  ] [tid=6974] [] [Endpointer] endpointer.endThreshold = 10
[*][  debug  ] [tid=6974] [] [Endpointer] endpointer.headMargin = 200
[*][  debug  ] [tid=6974] [] [Endpointer] endpointer.startWindow = 100
[*][  debug  ] [tid=6974] [] [Endpointer] endpointer.tailMargin = 400
[*][  debug  ] [tid=6974] [] [Endpointer] endpointer.endWindow = 200
[*][  debug  ] [tid=6974] [] [Endpointer] endpointer.waitEnd = 1000
[*][  debug  ] [tid=6974] [] [Endpointer] endpointer.wstep = 10
[*][  debug  ] [tid=6974] [] [Endpointer] endpointer.levelThreshold =5.000000
[*][  debug  ] [tid=6974] [] [Endpointer] endpointer.levelMode = 2
[*][  info   ] [tid=6974] [] [SessionPipeline] Pipeline message: START_RECOGNITION
[*][  info   ] [tid=6974] [] [API] Leaving "asr_startRecognition"
[*][  info   ] [tid=6976] [] [API] Entering "asr_sendAudio": length_bytes=126676, lastPacket=1
[*][  info   ] [tid=6976] [] [SessionPipeline] Pipeline message: SPEECH_START
[*][  info   ] [tid=6976] [] [SessionSink] Pipeline message: END_OF_SPEECH
[*][  info   ] [tid=6976] [] [API] Leaving "asr_sendAudio"
[*][  info   ] [tid=7546] [] [Recognizer] Creating final result: status=RECOGNIZED, last segment=false
[*][  info   ] [tid=7546] [] [Recognizer] Final result detail: text="eu quero uma pizza vegetariana", confidence=100, interp="pizza_vegetariana"
[*][  info   ] [tid=6977] [] [API] Entering "asr_releaseSession": session=201805021722730000
[*][  info   ] [tid=7556] [] [API] Entering "asr_releaseEngine"
[*][  info   ] [tid=7556] [] [API] Leaving "asr_releaseEngine"
 | 
Linhas  | 
Descrição  | 
|---|---|
1-9  | 
Motor ASR foi iniciado. Podem ser vistos a versão do motor ASR, o carregamento dos modelos, e a quantidade de canais da licença.  | 
11-21  | 
Criação da sessão de reconhecimento, com os parâmetros usados.  | 
23-30  | 
Carregamento e ativação da gramática usada.  | 
32-48  | 
Início do reconhecimento.  | 
50-53  | 
Envio do áudio.  | 
55-56  | 
Final do reconhecimento e retorno do resultado.  | 
58-61  | 
Finalização da sessão e o desligamento do motor ASR.  |