Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
RapidASR
Commits
7f6cf8f5
Commit
7f6cf8f5
authored
Mar 08, 2023
by
mayong
Browse files
Bugfix: RTF.
parent
5737fff6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
cpp_onnx/src/librapidasrapi.cpp
cpp_onnx/src/librapidasrapi.cpp
+0
-6
cpp_onnx/tester/tester.cpp
cpp_onnx/tester/tester.cpp
+2
-0
No files found.
cpp_onnx/src/librapidasrapi.cpp
View file @
7f6cf8f5
...
@@ -12,12 +12,6 @@ extern "C" {
...
@@ -12,12 +12,6 @@ extern "C" {
_RAPIDASRAPI
RPASR_HANDLE
RapidAsrInit
(
const
char
*
szModelDir
,
int
nThreadNum
)
_RAPIDASRAPI
RPASR_HANDLE
RapidAsrInit
(
const
char
*
szModelDir
,
int
nThreadNum
)
{
{
#ifdef NDEBUG
QMLIC_BOOL
bMatched
=
QmLicCheckValid
(
QLFM_ASR
);
if
(
!
bMatched
)
{
return
nullptr
;
}
#endif
Model
*
mm
=
create_model
(
szModelDir
,
nThreadNum
);
Model
*
mm
=
create_model
(
szModelDir
,
nThreadNum
);
...
...
cpp_onnx/tester/tester.cpp
View file @
7f6cf8f5
...
@@ -59,6 +59,8 @@ int main(int argc, char *argv[])
...
@@ -59,6 +59,8 @@ int main(int argc, char *argv[])
cout
<<
(
"no return data!"
);
cout
<<
(
"no return data!"
);
}
}
printf
(
"Audio length %lfs.
\n
"
,
(
double
)
snippet_time
);
seconds
=
(
end
.
tv_sec
-
start
.
tv_sec
);
seconds
=
(
end
.
tv_sec
-
start
.
tv_sec
);
long
taking_micros
=
((
seconds
*
1000000
)
+
end
.
tv_usec
)
-
(
start
.
tv_usec
);
long
taking_micros
=
((
seconds
*
1000000
)
+
end
.
tv_usec
)
-
(
start
.
tv_usec
);
printf
(
"Model inference takes %lfs.
\n
"
,
(
double
)
taking_micros
/
1000000
);
printf
(
"Model inference takes %lfs.
\n
"
,
(
double
)
taking_micros
/
1000000
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment