Implement good-enough TTS without machine learning.
This commit is contained in:
parent
8262d78b54
commit
cd43d98fb6
7 changed files with 116 additions and 122 deletions
|
@ -5,6 +5,8 @@ import (
|
|||
"os"
|
||||
)
|
||||
|
||||
var IsDebugMode = false
|
||||
|
||||
func Log(msg string) {
|
||||
fmt.Println(msg)
|
||||
}
|
||||
|
@ -13,6 +15,12 @@ func Logf(msg string, params ...interface{}) {
|
|||
fmt.Printf(msg+"\n", params...)
|
||||
}
|
||||
|
||||
func LogDebugf(msg string, params ...interface{}) {
|
||||
if IsDebugMode {
|
||||
fmt.Printf("DEBUG: %s\n", fmt.Sprintf(msg, params...))
|
||||
}
|
||||
}
|
||||
|
||||
func LogError(err error, msg string) {
|
||||
if msg == "" {
|
||||
fmt.Printf("%s\n", err.Error())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue