我的Go+语言初体验——【三、spx案例测试_许式伟先生推荐补充(附-视频)】
歡迎大家參與【我的Go+語言初體驗】活動:
活動地址:【https://bbs.csdn.net/topics/603464006?utm_source=1594742339】
安裝過程博文:【我的Go+語言初體驗——goplus環(huán)境問題錦集(一)_紅目香薰-CSDN博客】
安裝過程視頻:【GoPlus_Win10_紅目香薰-CSDN直播】
專欄路徑:【https://blog.csdn.net/feng8403000/category_11496375.html】
視頻地址:【https://live.csdn.net/v/181609】
B站地址:【https://www.bilibili.com/video/BV1i3411b7Nj/】
本課程根據(jù)【許式偉】先生的指點說明,向大家推薦【tutorial】下的【Demo】,此類demo會對大家掌握【Go+的spx】會有很大的幫助。
目錄
歡迎大家參與【我的Go+語言初體驗】活動:
1、拉取【spx】測試內容
2、【tutorial】下的【Demo】運行
案例一、聊天氣
3、編碼分析
Jaime的對白編碼:
kai的對白編碼:
生成的【gop_autogen.go】文件分析
1、拉取【spx】測試內容
前置環(huán)境需要有【git】
git clone https://github.com/goplus/spx.git拉取完成后請關閉當前【cmd】,無法再這個【cmd】內執(zhí)行測試。
可能偶爾出現(xiàn)拉取失敗,重試即可。
2、【tutorial】下的【Demo】運行
案例一、聊天氣
3、編碼分析
這個調用的是網(wǎng)絡包看著名字是【七?!康?#xff0c;也就是B棧那個。
七牛云的B棧主頁:【七牛云的個人空間_嗶哩嗶哩_Bilibili】?
Jaime的對白編碼:
onMsg "1", => {play recordingComeFromsay "I come from England.", 2broadcast "2" }onMsg "3", => {play recordingMildsay "It's mild, but it's not always pleasant.", 4nextCostumeplay recordingEastsay "The weather's often cold in the North and windy in the East.", 5.5play recordingSouthsay "It's often wet in the West and sometimes warm in the South.", 5broadcast "4" }onMsg "5", => {nextCostumeplay recordingSummersay "I like spring and summer.", 2play recordingShortsay "The days are long and the nights are short.", 3play recordingLatesay "The sun rises early and sets late. ", 3nextCostumeplay recordingWintersay "I don't like autumn and winter.", 3play recordingLongsay "The days are short and the nights are long.", 4play recordingEarlysay "The sun rises late and sets early.", 4nextCostumeplay recordingInterestingsay "Our climate is not very good, but it's certainly interesting.", 5play recordingConversationsay "It's our favourite subject of conversation.", 4broadcast "6" }onMsg "7", => {play recordingByesay "Bye!", 2nextCostume }kai的對白編碼:
onStart => {setCostume "kai-a"play recordingWheresay "Where do you come from?", 2broadcast "1" }onMsg "2", => {play recordingCountrysay "What's the climate like in your country?", 3broadcast "3" }onMsg "4", => {play recordingBestsay "Which seasons do you like best?", 3broadcast "5" }onMsg "6", => {play recordingBye2say "Thanks. Bye!", 2nextCostumebroadcast "7" }生成的【gop_autogen.go】文件分析
?
后面的對白就是寫死的了:
應該是為了讓咱們更好理解吧,很直接。不過我還找到開啟多線程的文檔。
聲音是在線生成的,不知道里面怎么調用的。
總結
以上是生活随笔為你收集整理的我的Go+语言初体验——【三、spx案例测试_许式伟先生推荐补充(附-视频)】的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 我的Go+语言初体验——【三、spx案例
- 下一篇: 【实施工程师】ARP——地址解析协议(高