1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| package hikvoice
|
| import(
| "testing"
| "fmt"
| )
|
| func TestMain(m *testing.M) {
| fmt.Println("begin")
| var ip,usrname,passwd,filepath string
| ip = "192.168.5.35"
| usrname = "admin"
| passwd = "a1234567"
| filepath = "/media/basic/cdbfb548-3100-4738-b9c1-0a7e1e002170/workspace/goproject/src/hicvoice/8k_1_16.g711a"
| r := SendVoice(ip, usrname, passwd, filepath)
| fmt.Println("end ", r)
| }
|
|