Go语言中文网 为您找到相关结果 9

【人工智能】结合多个应用场景讲解智能语音交互技术与应用

课程介绍 智能语音交互,是基于语音识别、语音合成、自然语言理解等技术,为企业在多种实际应用场景下,赋予产品“能听、会说、懂你”式的智能人机交互体验。适用于多个应用场景中,包括智能问答、智能质检、法庭庭审实时记录、实时演讲字幕、访谈录音转写等。 本课程主要讲解智能语音相关技术,包括语音识别、人机交互、语音合成等。 课程目标 • 学习智能语音相关技术 适合人群 • 大数据、人工智能开发者 课时列表 • 课时1:人工智能与智能语音概述 • 课时2:语音识别技术及应用 • 课时3:人机自然交互平台技术及应用 • 课时4:语音合成技术及应用 • 课时5:智能语音交互产品介绍 敬请期待 • 课时6:通过SDK使用语音识...阅读全文

带交互的telnet小工具,golang版

package netTools //main // import ( "fmt" "net" "strconv" "strings" "time" ) func smain() { lis, err := net.Listen("tcp", ":1789") if err != nil { fmt.Println(err) } defer lis.Close() for { con, _ := lis.Accept() go handler(con) } } func handler(con net.Conn) { defer con.Close() buf := make([]byte, 20) n, _ := con.Read(buf) fmt.Println(string(buf[:...阅读全文

博文 2016-05-05 19:00:01 fyxichen

golang构建交互式shell终端

reader := bufio.NewReader(os.Stdin) for { fmt.Print("$ ") cmdString, err := reader.ReadString('\n') if err != nil { fmt.Fprintln(os.Stderr, err) } cmdString = strings.TrimSuffix(cmdString, "\n") cmd := exec.Command(cmdString) cmd.Stderr = os.Stderr cmd.Stdout = os.Stdout err = cmd.Run() if err != nil { fmt.Fprintln(os.Stderr, err) } } Today I Learn...阅读全文

博文 2019-07-24 21:32:40 笑吧小鸟

golang的apns证书文件转换(P12 to Pem)

golang 不支持p12解析,所以需要转换成pem 网上有一些,但都不能实现自动转换(非交互模式)。以下是非交互模式的转换: //生成临时文件cert.pem,注意passin 和 passout 选项 openssl pkcs12 -clcerts -nokeys -out cert.pem -in cert.p12 -passin pass:P12_PASS //生成临时文件key.pem openssl pkcs12 -nocerts -out key.pem -in cert.p12 -passin pass:P12_PASS -passout pass:TMP_PASS //去掉key.pem的密码 openssl rsa -in key.pem -out key.unencry...阅读全文

博文 2015-12-10 22:00:01 linsanhua

golang多进程库pagent

地址:https://github.com/adwpc/pagentpagent是一个多进程模型的golang库,具有以下特点:简单: 父子进程只通过stdin和stdout来交互安全: 多进程很安全,子进程挂掉一个不影响其他子进程解耦:子进程交互和业务分离例子:package mainimport ( "fmt" "time" "github.com/adwpc/pagent")type MyBiz struct { pagent.Master}func NewBiz() *MyBiz { return &MyBiz{}}func (a *MyBiz) BizRunning(id, str string) error { fmt.Println("[MyBiz BizRunning] st...阅读全文

博文 2018-07-03 18:34:47 adwpc

Go语言练习:go语言与C语言的交互——cgo

1、代码 1 package main 2 3 import "fmt" 4 /* 5 #include 6 #include 7 void hello() 8 { 9 printf("Hello World !\n"); 10 } 11 */ 12 import "C" 13 14 func Hello() { 15 C.hello(); 16 } 17 18 19 func Random() int { 20 return int(C.random()) 21 } 22 23 func Seed(i int) { 24 C.srandom(C.uint(i)) 25 } 26 27 func main () { 28 Seed(100) 29 f...阅读全文

博文 2015-08-01 03:00:01 fengbohello

golang的apns证书文件转换(P12 to Pem)

golang 不支持p12解析,所以需要转换成pem 网上有一些,但都不能实现自动转换(非交互模式)。以下是非交互模式的转换: //生成临时文件cert.pem,注意passin 和 passout 选项 openssl pkcs12 -clcerts -nokeys -out cert.pem -in cert.p12 -passin pass:P12_PASS //生成临时文件key.pem openssl pkcs12 -nocerts -out key.pem -in cert.p12 -passin pass:P12_PASS -passout pass:TMP_PASS //去掉key.pem的密码 openssl rsa -in key.pem -out key.unencry...阅读全文

博文 2017-02-09 16:52:57 邮差小组