论语音通知在互联网行业中的应用

语音通知,顾名思义,通过进行语音呼叫来广播通知的内容。这份通知非常有效。它会及时通知用户一些重要信息,而不是短信,因为其他原因看不到,或者根本找不到短信堆栈。然而,有些信息可能很长,用户听完电话后会忘记具体内容。

[En]

Voice notification, as its name implies, broadcasts the content of the notification by making voice calls. This notification is very effective. It notifies users of some important information in a timely manner, unlike SMS, which is not seen due to other reasons, or cannot be found in the SMS stack at all. However, some information may be long, and the user forgets the specific content after listening to the phone.

在一些重要信息通知的场景,需要用户能收到且关注到信息,采用短信+语音通知同步推送的方式,能很好的解决这个问题。

场景一:相同内容的短信通知+语音通知同步发送

在推送短信的同时,同步推送相同内容的语音通知;用户在手机上收到通知内容后,还可以通过查阅短信来确认信息内容。

[En]

While pushing the short message, the voice notification of the same content is pushed synchronously; after the user receives the notification content on the phone, the user can also confirm the information content by consulting the short message.

适用领域:

货运司机通知、快递物流通知、物联网设备预警通知、服务器监控预警通知、重要订单信息变更通知。

[En]

Freight driver notification, express logistics notification, Internet of things equipment early warning notification, server monitoring early warning notification, important order information change notice.

通知模板示例:

尊敬的***用户,您好,您的可用余额为6358条,请及时续费,自助续费请登录用户中心操作!

尊敬的***用户,您好,您的账户已达您设置的最大发送量,系统已暂停发送,如需变更,请登录用户中心操作!

您的车号,请于前入厂,请正确穿戴安全帽、反光马甲,听从现场人员指挥,谢谢配合!

场景二:短信通知+语音提示同步发送

同步推送提示勾选短信语音通知,提醒用户关注短信。

[En]

Synchronous push prompts to check the voice notification of SMS messages to remind users to pay attention to SMS messages.

适用领域:

会议通知、活动通知、问卷调查、后勤提醒、订单提醒等。

[En]

Meeting notice, activity notice, questionnaire, logistics reminder, order reminder, etc.

通知模板示例:

短信内容: 【同城】同城提醒您,您有件货物已经到达,请尽快来提取您的货物

语音内容:**同城提醒您,您有一条新的物流消息,请查看短信。

短信内容:您好,现已下发采购订单,请打开链接查看具体明细并回复货期,如有疑问可致电,敬请知悉。

语音内容:您好,今天有一条采购订单发送给您的手机短信,请打开短信确认订单内容和回复发货时间,谢谢!

[En]

Voice content: Hello, there is a purchase order sent to your mobile phone message today, please open the text message to confirm the order content and reply delivery time, thank you!

短信内容:【电网】您好,会议将于开始,会议地点,请准时到**参会。

语音内容:您好,您有一条新的会议通知消息,请告知。

[En]

Voice content: Hello, you have a new meeting notice message, please know.

论语音通知在互联网行业中的应用

接入指南:

论语音通知在互联网行业中的应用

技术对接,如有问题可以查看详细代码示例说明。

//接口类型:互亿无线语音通知接口。
//账户注册:请通过该地址开通账户 http://user.ihuyi.com/?9vXc7
//注意事项:
//(1)调试期间,请仔细阅读接口文档;
//(2)请使用APIID(查看APIID请登录用户中心->语音通知->帐户及签名设置->APIID)及 APIkey来调用接口;
//(3)该代码仅供接入互亿无线语音通知接口参考使用,客户可根据实际需要自行编写;

package main

import (
    "crypto/md5"
    "encoding/hex"
    "fmt"
    "io/ioutil"
    "net/http"
    "net/url"
    "strconv"
    "strings"
    "time"
)

func GetMd5String(s string) string {
    h := md5.New()
    h.Write([]byte(s))
    return hex.EncodeToString(h.Sum(nil))
}
func main() {
    v := url.Values{}
    _now := strconv.FormatInt(time.Now().Unix(), 10)
    //fmt.Printf(_now)
    _account := "用户名" //用户名是登录用户中心->语音通知>帐户参数设置->APIID
    _password := "密码" //查看密码请登录用户中心->语音通知>帐户参数设置->APIKEY
    _mobile := "136xxxxxxxx"
    _content := "您的订单号是:0648。已由顺风快递发出,请注意查收。"
    v.Set("account", _account)
    v.Set("password", GetMd5String(_account+_password+_mobile+_content+_now))
    v.Set("mobile", _mobile)
    v.Set("content", _content)
    v.Set("time", _now)
    body := strings.NewReader(v.Encode()) //把form数据编下码
    client := &http.Client{}
    req, _ := http.NewRequest("POST", "http://api.vm.ihuyi.com/webservice/voice.php?method=Submit&format=json", body)

    req.Header.Set("Content-Type", "application/x-www-form-urlencoded; param=value")
    //fmt.Printf("%+v\n", req) //看下发送的结构

    resp, err := client.Do(req) //发送
    defer resp.Body.Close()     //一定要关闭resp.Body
    data, _ := ioutil.ReadAll(resp.Body)
    fmt.Println(string(data), err)
}

Original: https://blog.csdn.net/m0_61627247/article/details/123117126
Author: 互亿无线明明
Title: 论语音通知在互联网行业中的应用

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/498130/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球