Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
e5621010
Commit
e5621010
authored
Mar 03, 2021
by
Jean-Baptiste Mardelle
Browse files
Show error if speech modules were removed since last run
parent
2b58a79f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dialogs/textbasededit.cpp
View file @
e5621010
...
...
@@ -863,7 +863,11 @@ void TextBasedEdit::slotProcessSpeechStatus(int, QProcess::ExitStatus status)
if
(
status
==
QProcess
::
CrashExit
)
{
showMessage
(
i18n
(
"Speech recognition aborted."
),
KMessageWidget
::
Warning
,
m_errorString
.
isEmpty
()
?
nullptr
:
m_logAction
);
}
else
if
(
m_visualEditor
->
toPlainText
().
isEmpty
())
{
showMessage
(
i18n
(
"No speech detected."
),
KMessageWidget
::
Information
,
m_errorString
.
isEmpty
()
?
nullptr
:
m_logAction
);
if
(
m_errorString
.
contains
(
QStringLiteral
(
"ModuleNotFoundError"
)))
{
showMessage
(
i18n
(
"Error, please check the speech to text configuration."
),
KMessageWidget
::
Warning
,
m_voskConfig
);
}
else
{
showMessage
(
i18n
(
"No speech detected."
),
KMessageWidget
::
Information
,
m_errorString
.
isEmpty
()
?
nullptr
:
m_logAction
);
}
}
else
{
button_add
->
setEnabled
(
true
);
showMessage
(
i18n
(
"Speech recognition finished."
),
KMessageWidget
::
Positive
);
...
...
Write
Preview
Supports
Markdown
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