Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
funasr_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 77599be1
authored
Jan 15, 2025
by
‘chizw’
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]限制优化
1 parent
f6099f6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
kafka_service/test01.py
mysql_service/funasr_db.py
kafka_service/test01.py
View file @
77599be
...
@@ -144,16 +144,12 @@ def select_extract_data():
...
@@ -144,16 +144,12 @@ def select_extract_data():
traceback
.
print_exc
()
traceback
.
print_exc
()
if
duration
!=
0
:
if
duration
!=
0
:
length
=
content
/
(
duration
/
(
60
*
1000
))
length
=
content
/
(
duration
/
(
60
*
1000
))
if
length
>
210
:
if
length
>
160
:
speed
=
'急速'
speed
=
'过快'
elif
length
>
180
:
elif
length
>
140
:
speed
=
'快速'
elif
length
>
150
:
speed
=
'适中'
speed
=
'适中'
elif
length
>
120
:
speed
=
'缓慢'
else
:
else
:
speed
=
'
极
慢'
speed
=
'
过
慢'
item
[
"speed"
]
=
speed
item
[
"speed"
]
=
speed
item
.
pop
(
"detail_json"
)
item
.
pop
(
"detail_json"
)
# item.pop("recording_duration")
# item.pop("recording_duration")
...
@@ -175,6 +171,6 @@ def select_extract_data():
...
@@ -175,6 +171,6 @@ def select_extract_data():
# run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_172075478615417207538825792.mp3", "东联")
# run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_172075478615417207538825792.mp3", "东联")
# run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_172119302897717211886442290.mp3", "李钰达")
# run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_172119302897717211886442290.mp3", "李钰达")
# run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_17205900068901720588971648.mp3", "张东华")
# run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_17205900068901720588971648.mp3", "张东华")
run
(
"https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/车辆知识_保险基础知识培训-视频.mp3"
,
"保险基础知识培训"
)
#
run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/车辆知识_保险基础知识培训-视频.mp3", "保险基础知识培训")
# select_extract_data()
\ No newline at end of file
\ No newline at end of file
select_extract_data
()
\ No newline at end of file
\ No newline at end of file
mysql_service/funasr_db.py
View file @
77599be
...
@@ -213,9 +213,12 @@ left join ( select
...
@@ -213,9 +213,12 @@ left join ( select
and dclgo.status in (4, 6) and upgrade_flag = 'Y'
and dclgo.status in (4, 6) and upgrade_flag = 'Y'
group by dclgoc.customer_phone
group by dclgoc.customer_phone
order by order_time desc) t4 on rci.phone_number =t4.customer_phone
order by order_time desc) t4 on rci.phone_number =t4.customer_phone
where recording_start_time BETWEEN
%
s and
%
s
where ibr.id in (
and ibr.recording_duration > 60*15 and t3.employee_name in ('黄锦秀','庞丽丽','郑曼如','王希丽','范达华')
38945,38856,38777,38600,38433,38352,38967,38834,38631,38573,38337,37776,38605,38241,38172,38766,38760,38736,35074,34912,33768,35191,35182,35073)
order by t3.employee_name,ibr.recording_start_time desc
# recording_start_time BETWEEN
%
s and
%
s
# and ibr.recording_duration > 60*15 and t3.employee_name in ('黄锦秀','庞丽丽','郑曼如','王希丽','范达华')
# order by t3.employee_name,ibr.recording_start_time desc
group by ibr.id order by ibr.id
;"""
;"""
)
)
return
pool
.
select_all
(
sql
,
(
'2024-12-16'
,
'2024-12-23'
))
return
pool
.
select_all
(
sql
,
(
'2024-12-16'
,
'2024-12-23'
))
Write
Preview
Markdown
is supported
Attach a file
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 post a comment