You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
349 B
18 lines
349 B
package google_test
|
|
|
|
import (
|
|
"yunyan/sys/google"
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func Test_Sys(t *testing.T) {
|
|
if sys, err := google.NewSys(
|
|
google.SetJsonPath("./yunqiinnovation-gemini-458b0a37af4c.json"),
|
|
); err != nil {
|
|
fmt.Printf("Sys Init err:%v", err)
|
|
} else {
|
|
token, err := sys.SpeechToken()
|
|
fmt.Printf(" token:%v err:%v", token, err)
|
|
}
|
|
}
|
|
|