Skip to content

Commit

Permalink
优化英文字幕智能分段处理
Browse files Browse the repository at this point in the history
  • Loading branch information
wxbool committed Dec 20, 2019
1 parent 1563828 commit 8648884
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/aliyun/tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ func AliyunAudioResultWordHandle(result [] byte , callback func (vresult *Aliyun
continue
}
for windex , w := range p {
if word.BeginTime >= w.BeginTime && word.EndTime <= w.EndTime {

if (word.BeginTime >= w.BeginTime && word.EndTime <= w.EndTime) || ((word.BeginTime < w.EndTime && word.EndTime > w.EndTime) && (FindSliceIntCount(w.Blocks , -1) != len(w.Blocks))) {
flag := false
early := false

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

//应用版本号
const APP_VERSION = "0.2.0"
const APP_VERSION = "0.2.1"

var AppRootDir string
var mw *MyMainWindow
Expand Down

0 comments on commit 8648884

Please sign in to comment.