This commit is contained in:
邹宗楠
2022-08-09 14:59:17 +08:00
parent 50fceedd10
commit 0a51e4bf7c
2 changed files with 91 additions and 8 deletions

View File

@@ -1,5 +1,41 @@
package model
var NumberVoiceMap map[string]int
func init() {
NumberVoiceMap = map[string]int{
"0": ZeroVoice,
"1": OneVoice,
"2": TwoVoice,
"3": ThreeVoice,
"4": FourVoice,
"5": FiveVoice,
"6": SixVoice,
"7": SevenVoice,
"8": EightyVoice,
"9": NineVoice,
"10": TenVoice,
"20": TwentyVoice,
"30": ThirtyVoice,
"40": FortyVoice,
"50": FiftyVoice,
"60": SixtyVoice,
"70": SeventyVoice,
"80": EightyVoice,
"90": NinetyVoice,
"100": OneHundredVoice,
"200": TwoHundredVoice,
"300": ThereHundredVoice,
"400": FourHundredVoice,
"500": FiveHundredVoice,
"600": SixHundredVoice,
"700": SeventyHundredVoice,
"800": EightHundredVoice,
"900": NineHundredVoice,
"1000": OneThousandVoice,
}
}
// 语音常量
const (
WeComeJXPrintVoice = 1 //. 欢迎使用京西云打印机.mp3