Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
accessibility_movie_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵心治
accessibility_movie_2
Commits
e2f963e4
Commit
e2f963e4
authored
Oct 29, 2022
by
xuanweiace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 把界面里的语言统一成中文 2 更新了语音合成接口的秘钥
parent
2ca94fa3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
detect_dialog.py
detect_dialog.py
+1
-1
speech_synthesis.py
speech_synthesis.py
+1
-1
No files found.
detect_dialog.py
View file @
e2f963e4
...
@@ -16,7 +16,7 @@ class Detect_Dialog(QDialog, Ui_Dialog):
...
@@ -16,7 +16,7 @@ class Detect_Dialog(QDialog, Ui_Dialog):
super
(
Detect_Dialog
,
self
)
.
__init__
()
super
(
Detect_Dialog
,
self
)
.
__init__
()
self
.
setupUi
(
self
)
self
.
setupUi
(
self
)
self
.
setWindowTitle
(
"检测"
)
self
.
setWindowTitle
(
"检测"
)
self
.
buttonBox
.
button
(
QDialogButtonBox
.
StandardButton
.
Ok
)
.
setText
(
"
start detect
"
)
self
.
buttonBox
.
button
(
QDialogButtonBox
.
StandardButton
.
Ok
)
.
setText
(
"
开始检测
"
)
self
.
pushButton
.
clicked
.
connect
(
self
.
openFile
)
self
.
pushButton
.
clicked
.
connect
(
self
.
openFile
)
self
.
pushButton_2
.
clicked
.
connect
(
self
.
openTableFile
)
self
.
pushButton_2
.
clicked
.
connect
(
self
.
openTableFile
)
self
.
buttonBox
.
button
(
QDialogButtonBox
.
StandardButton
.
Ok
)
.
clicked
.
connect
(
self
.
start_detect
)
self
.
buttonBox
.
button
(
QDialogButtonBox
.
StandardButton
.
Ok
)
.
clicked
.
connect
(
self
.
start_detect
)
...
...
speech_synthesis.py
View file @
e2f963e4
...
@@ -91,7 +91,7 @@ def speech_synthesis(text: str, output_file: str, speaker: Speaker, speed: float
...
@@ -91,7 +91,7 @@ def speech_synthesis(text: str, output_file: str, speaker: Speaker, speed: float
"""
"""
audio_path
=
tmp_file
audio_path
=
tmp_file
speech_config
=
SpeechConfig
(
speech_config
=
SpeechConfig
(
subscription
=
"
ffa331815f0f4c7fa418bb6c2e1c4e17
"
,
region
=
"eastus"
)
subscription
=
"
db34d38d2d3447d482e0f977c66bd624
"
,
region
=
"eastus"
)
speech_config
.
speech_synthesis_language
=
"zh-CN"
speech_config
.
speech_synthesis_language
=
"zh-CN"
speech_config
.
speech_synthesis_voice_name
=
speaker
.
speaker_code
speech_config
.
speech_synthesis_voice_name
=
speaker
.
speaker_code
...
...
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