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
d6d10481
Commit
d6d10481
authored
Feb 09, 2021
by
Jean-Baptiste Mardelle
Browse files
Enforce utf8 in auto generated subtitles
parent
4314c870
Pipeline
#50330
passed with stage
in 10 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
data/scripts/speech.py
View file @
d6d10481
...
...
@@ -57,6 +57,6 @@ def transcribe():
subtitle
=
srt
.
compose
(
transcribe
())
print
(
subtitle
)
with
open
(
sys
.
argv
[
4
],
'w'
)
as
f
:
with
open
(
sys
.
argv
[
4
],
'w'
,
encoding
=
'utf8'
)
as
f
:
f
.
writelines
(
subtitle
)
f
.
close
()
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