• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*---------------------------------------------------------------------------*
2  *  rec_norm.c  *
3  *                                                                           *
4  *  Copyright 2007, 2008 Nuance Communciations, Inc.                               *
5  *                                                                           *
6  *  Licensed under the Apache License, Version 2.0 (the 'License');          *
7  *  you may not use this file except in compliance with the License.         *
8  *                                                                           *
9  *  You may obtain a copy of the License at                                  *
10  *      http://www.apache.org/licenses/LICENSE-2.0                           *
11  *                                                                           *
12  *  Unless required by applicable law or agreed to in writing, software      *
13  *  distributed under the License is distributed on an 'AS IS' BASIS,        *
14  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
15  *  See the License for the specific language governing permissions and      *
16  *  limitations under the License.                                           *
17  *                                                                           *
18  *---------------------------------------------------------------------------*/
19 
20 
21 #include <stdlib.h>
22 #ifndef _RTT
23 #include "pstdio.h"
24 #endif
25 #include <limits.h>
26 #include <math.h>
27 #include <string.h>
28 #include "passert.h"
29 
30 #include "c42mul.h"
31 #include "portable.h"
32 
33 #include "../clib/fpi_tgt.inl"
34 
inherit_recognition_statistics(utterance_info * utt,multi_srec * recm,int norm_dim)35 int inherit_recognition_statistics(utterance_info *utt, multi_srec *recm,
36                                    int norm_dim)
37 {
38   /* inherit_recognition_stats use a callback function mechanism, */
39   frameID speech_start, speech_end;
40   multi_srec_get_speech_bounds(recm, &speech_start, &speech_end);
41   swicms_update(utt->gen_utt.swicms, speech_start, speech_end);
42   return (True);
43 }
44