mirror of
https://github.com/rany2/edge-tts
synced 2024-11-22 09:56:53 +00:00
Fix subtitles and version bump
This commit is contained in:
parent
21eb9c934b
commit
f5bde41eab
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = edge-tts
|
name = edge-tts
|
||||||
version = 2.0.5
|
version = 2.0.6
|
||||||
author = rany
|
author = rany
|
||||||
author_email = ranygh@riseup.net
|
author_email = ranygh@riseup.net
|
||||||
description = Microsoft Edge's TTS
|
description = Microsoft Edge's TTS
|
||||||
|
@ -49,9 +49,8 @@ def removeIncompatibleControlChars(s):
|
|||||||
def mktimestamp(ns):
|
def mktimestamp(ns):
|
||||||
hour = math.floor(ns / 10000 / 1000 / 3600)
|
hour = math.floor(ns / 10000 / 1000 / 3600)
|
||||||
minute = math.floor((ns / 10000 / 1000 / 60) % 60)
|
minute = math.floor((ns / 10000 / 1000 / 60) % 60)
|
||||||
seconds = math.floor((ns / 10000 / 1000) % 60)
|
seconds = (ns / 10000 / 1000) % 60
|
||||||
mili = float(str(math.modf((ns / 10000) - (1000 * seconds))[1])[:3])
|
return "%.02d:%.02d:%06.3f" % (hour, minute, seconds)
|
||||||
return "%.02d:%.02d:%.02d.%.03d" % (hour, minute, seconds, mili)
|
|
||||||
|
|
||||||
# Return loaded JSON data of list of Edge's voices
|
# Return loaded JSON data of list of Edge's voices
|
||||||
# NOTE: It's not the total list of available voices.
|
# NOTE: It's not the total list of available voices.
|
||||||
|
Loading…
Reference in New Issue
Block a user