plot summary:
During the spring and Autumn period, the Chinese chaotic empire flourished, but this was not a solitary case on the Earles planet.
So at that time, what language do people from all over the planet communicate with? And what about their writings?
Drama Start:
Star Calendar July 03, 2016 09:36:51, the Milky Way Galaxy Earles the Chinese Empire Jiangnan Line province.
[Engineer Ah Wei] is working with [machine Xiao Wei] to study [language and languages in the world of the beginning of the word].
Here's a look at the syllable:
<span style= "FONT-SIZE:18PX;" >import Struct;import Math; Import OS from Os.path import join, Getsizeimport Voice.tian, Voice.di, Voice.xuan, Voice.huang; #辅音音节class Voice (): Def idlewave (self): return [b ' \x00 ']*200; def consonant (self): terms = [' B ', ' C ', ' ch ', ' d ', ' f ', ' g ', ' H ', ' J ', ' K ', ' l ', ' m ', ' n ', ' P ', ' Q ', ' R ', ' s ', ' sh ', ' t ', ' V ', ' w ', ' x ', ' y ', ' z ']; return terms; def vowel: terms = [' a ', ' ai ', ' an ', ' ang ', ' ao ', ' e ', ' ei ', ' en ', ' eng ', ' er ', ' I ', ' Ian ', ' Iang ', ' ie ', ' in ', ' ing ', ' iong ', ' iu ' ' o ', ' Oi ', ' on ', ' Ong ', ' ou ', ' u ', ' ua ', ' Uan ', ' Uang ', ' UE ', ' uei ', ' UEN ', ' Ueng ', ' üe ', ' Ün ']; return terms; def pingyin: terms = [#410项 ' A ', ' ai ', ' an ', ' ang ', ' ao ', ' ba ', ' Bai ', ' ban ', ' bang ', ' bao ', ' bei ', ' Ben ', ' be Ng ', ' bi ', ' bian ', ' Biao ', ' bie ', ' bin ', ' Bing ', ' bo ', ' bu', ' Ca ', ' cai ', ' Can ', ' Cang ', ' Cao ', ' CE ', ' cen ', ' CEng ', ' cha ', ' Chai ', ' Chan ', ' Chang ', ' Chao ', ' che ', ' Chen ', ' Cheng ', ' Chi ', ' Chong ', ' Chou ', ' Chu ', ' Chua ', ' Chuai ', ' Chuan ', ' Chuang ', ' Chui ', ' Chun ', ' Chuo ', ' ci ', ' Cong ', ' cou ', ' cu ', ' cu ' An ', ' cui ', ' cun ', ' CuO ', ' da ', ' Dai ', ' Dan ', ' Dang ', ' dao ', ' de ', ' den ', ' dei ', ' Deng ', ' di ', ' dia ', ' dian ', ' Diao ', ' die ', ' ding ', ' diu ', ' Dong ', ' dou ', ' du ', ' Duan ', ' dui ', ' dun ', ' duo ', ' e ', ' ei ', ' en ', ' eng ', ' er ', ' fa ', ' fan ', ' Fang ', ' FE I ', ' fen ', ' Feng ', ' fo ', ' fou ', ' Fu ', ' ga ', ' Gai ', ' gan ', ' gang ', ' Gao ', ' ge ', ' gei ', ' gen ', ' Geng ', ' gong ', ' Gou ', ' gu ', ' Gua ', ' Guai ', ' Guan ', ' Guang ', ' GUI ', ' gun ', ' Guo ', ' ha ', ' hai ', ' han ', ' Hang ', ' Hao ', ' he ', ' hei ', ' hen ', ' Heng ', ' Hong ' , ' Hou ', ' Hu ', ' Hua ', ' Huai ', ' Huan ', ' Huang ', ' hui ', ' hun ', ' Huo ', ' Ji ', ' Jia ', ' Jian ', ' jiang ', ' jiao ', ' Jie ', ' Jin ', ' J ing ', ' jiong ', ' jiu ', ' ju ', ' Juan ', ' Jue ', ' June ', ' ka ', ' kai ', ' kan ', ' kang ', ' kao ', ' ke ', ' Ken ', ' Keng ', ' Kong ', ' Kou ', ' Ku ', ' kua ', ' Kuai ', ' Kuan ', ' Kuang ', ' kui ', ' Kun ', ' Kuo ', ' la ', ' Lai ', ' lan ', ' Lang ', ' Lao ', ' Le ', ' lei ', ' Leng ', ' Li ', ' lia ', ' Lian ', ' Liang ', ' l Iao ', ' lie ', ' Lin ', ' Ling ', ' Liu ', ' Long ', ' Lou ', ' Lu ', ' lulse ', ' Luan ', ' lue ', ' lüe ', ' lun ', ' Luo ', ' m ', ' ma ', ' mai ', ' man ', ' Mang ', ' Mao ', ' Me ', ' Mei ', ' Men ', ' Meng ', ' mi ', ' Mian ', ' Miao ', ' mie ', ' min ', ' Ming ', ' Miu ', ' Mo ', ' mou ', ' mu ', ' na ', ' n ' Ai ', ' nan ', ' Nang ', ' nao ', ' ne ', ' nei ', ' nen ', ' Neng ', ' ni ', ' nian ', ' Niang ', ' niao ', ' nie ', ' nin ', ' ning ', ' niu ', ' Nong ', ' Nou ', ' Nu ', ' Nü ', ' Nuan ', ' nüe ', ' nuo ', ' Nun ', ' o ', ' ou ', ' pa ', ' pai ', ' Pan ', ' pang ', ' Pao ', ' pei ', ' pen ', ' Peng ', ' pi ', ' Pian ', ' piao ', ' pie ', ' pin ', ' ping ', ' po ', ' Pou ', ' pu ', ' qi ', ' qia ', ' Qian ', ' Qiang ', ' Qiao ', ' qie ', ' Qin ', ' Qing ', ' Qio ' Ng ', ' Qiu ', ' qu ', ' quan ', ' que ', ' Qun ', ' ran ', ' rang ', ' Rao ', ' re ', ' Ren ', ' reng ', ' ri ', ' rong ', ' rou ', ' ru ', ' Ruan ', ' Rui ' ', ' run ', ' Ruo ', ' sa ', ' Sai ', ' san ', ' sang ', ' Sao ', ' se ', ' sen ', ' Seng ', ' Sha ', ' Shai ', ' Shan ', ' Shang ', ' Shao ', ' she ', ' s Hei ', ' shen ', ' Sheng ', 'Shi ', ' shou ', ' shu ', ' Shua ', ' Shuai ', ' Shuan ', ' shuang ', ' shui ', ' shun ', ' Shuo ', ' si ', ' song ', ' Sou ', ' su ', ' Suan ', ' Sui ', ' Sun ', ' suo ', ' ta ', ' Tai ', ' tan ', ' Tang ', ' Tao ', ' te ', ' Teng ', ' ti ', ' Tian ', ' tiao ', ' tie ', ' Ting ', ' Tong ', ' tou ', ' tu ', ' Tuan ', ' tui ', ' tun ', ' tuo ', ' wa ', ' Wai ', ' Wan ', ' Wang ', ' Wei ', ' Wen ', ' Weng ', ' wo ', ' wu ', ' XI ', ' xia ', ' Xian ', ' Xiang ', ' Xiao ', ' Xie ', ' Xin ', ' xing ', ' Xiong ', ' Xiu ', ' Xu ', ' Xuan ', ' Xue ', ' Xun ', ' ya ', ' Yan ', ' yang ', ' Yao ', ' ye ', ' yi ', ' yin ', ' y ' ing ', ' yo ', ' Yong ', ' You ', ' Yu ', ' yuan ', ' Yue ', ' Yun ', ' za ', ' zai ', ' Zan ', ' Zang ', ' Zao ', ' ze ', ' zei ', ' Zen ', ' Zeng ', ' Zha ', ' Zhai ', ' Zhan ', ' Zhang ', ' Zhao ', ' zhe ', ' Zhei ', ' zhen ', ' Zheng ', ' zhi ', ' Zhong ', ' Zhou ', ' Zhu ', ' Zhua ', ' Zhuai ', ' Zhuan ' ', ' Zhuang ', ' Zhui ', ' Zhun ', ' Zhuo ', ' Zi ', ' zong ', ' Zou ', ' zu ', ' Zuan ', ' Zui ', ' Zun ', ' Zuo ',]; return terms; def Combineyinjie (self): v = self.vowel (); c = self.consonant (); Com_ = []; For I in range (len (v)): if (v[i][0] = = ' I ' or v[i][0] = = ' u '): Continue; Else:com_.append (V[i]); For I in range (Len (c)): For J in Range (Len (v)): Com_.append (C[i]+v[j]); return com_; #从音节的录音中 (. wav) processes a syllable, writes the data to the file Def yinjieprocess (self, sFile): FileSize = GetFileSize (sFile); if (FileSize <): return; c = []; #每次读取1000个字节 perread = 100; With open (SFile, ' RB ') as F: #这是标准. wav file header Length a = F.read (44); index = 44; start = 0; end = 0; Sparecount = 0; while (Index < fileSize): a = F.read (Perread); b = List (a); Count = Countzero (B[1:-1:2], 64); if (Count > perread/2* 17/20): #认为这是空白 index + = Perread; if (start = = 0): #前端空白 continue; else: #后端空白 end = index; if (End-start <): continue; Else:index = filesize+1; Break Else:if (start = = 0): start = index; #正部开始 index + = Perread; Validlength = End-start; F.seek (start, 0); #第二个参数whence = 0 means from the beginning, =2 means to count data = List (F.read (validlength) from the end); F.close (); Print (' Valid ' section starts with {0} bytes and ends with {1} bytes, altogether {2} bytes. {3} seconds to {4} seconds '. Format (start, end, Validlength, round (start/22050, 3), round (end/22050, 3)); DataArray = []; For I in range (len (data)): Byte = Struct.pack (' B ', data[i]); Dataarray.append (byte); Print (' File write openBegan. Please go to tone.py to check >>> '); Fout = open (' tone.py ', ' W '); Fout.write (' tone_x = ['); Size_1 = Len (DataArray); For n in range (size_1): Fout.write (str (dataarray[n)); if (n < size_1-1): Fout.write (', '); Fout.write (']; '); Fout.write (' \ r \ n '); Fout.close (); Print (' The file is finished writing. '); #把十进制数按照小尾字节序切割 def littleendian (self, number, Byte = 4): result = [0]*byte; For I in Range (byte): result[i] = number%256; number//=256; return result; #把UltraEdit中的值字串转化为hex序列组 def hexexpr (Self, string): Resultstring = "; Size = Len (string); For I in range (size): if (i = = 0): resultstring + = ' 0x ' +string[i]; Elif (string[i] = = "): resultstring + = ', 0x '; Else:resultstring + = String[i]; Print (resultstring); # # # # # # # # # @usage write a. wav file that can put the sonic dataColumns are written in binary. wav. # @author MW # @date Thursday, April 28, 2016 14:31:34 # @param # @return # # # def writewav (self, Filenam E = ' Soundwave '): ByteArray = []; DataArray = []; #样本数据阵列 samplearray = []; Idlewave = Self.idlewave (); Samplearray = Self.wavedatagen (); #样本数据点数 N = Len (Samplearray); times = 1; DataSize = N*times; FileSize = datasize+44; #44为格式头部分所用字节数 #RIFF WAVE CHUNK riff_id = [0x52, 0x49, 0x46, 0x46]; # ' RIFF ' riff_size = Self.littleendian (fileSize-8, 4); #文件总字节数减去8 Riff_type = [0x57, 0x41,0x56, 0x45, 0x66, 0x6d, 0x74, 0x20]; # ' Wavefat ' #Format Chunk format_10_17 = [0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00]; #过滤4 + format 2 = 8 bytes FORMAT_18_1B = [0x11, 0x2B, 0x00, 0x00]; #采样频率0x2B11 = 11025 format_1c_1f = [0x22, 0x56, 0x00, 0x00]; #比持率 = frequency * Channel * Sample bit = 22050 format_20_23 = [0x02, 0x00, 0x10, 0x00]; #块对齐 = number of channels * sample bits = 1*2 = 2 #Fact Chunk (optional) #Data Chunk data_24_27 = [0x64, 0x61, 0x74, 0x61 ]; # ' DATA ' tag data_size = Self.littleendian (fileSize-44, 4); #下面的Data部分的字节数, total number of files bytes -44 #RIFF WAVE CHUNK "For I in Range (4): byte = Struct.pack (' B ', R Iff_id[i]); Bytearray.append (byte); "' RIFF = [b ' R ', b ' I ', B ' f ', B ' f ']; For I in range (4): Bytearray.append (Riff[i]); For I in range (4): byte = Struct.pack (' B ', riff_size[i]); Bytearray.append (byte); ' For I in range (8): byte = Struct.pack (' B ', riff_type[i]); Bytearray.append (byte); #Format Chunk for I in range (8): byte = Struct.pack (' B ', format_10_17[i]); Bytearray.append (byte); For I in range (4): byte = Struct.pack (' B ', format_18_1b[i]); Bytearray.append (byte); For I in range (4): Byte = Struct.pack (' B ', format_1c_1f[i]); Bytearray.append (byte); For I in range (4): byte = Struct.pack (' B ', format_20_23[i]); Bytearray.append (byte); #Data Chunk for I in range (4): byte = Struct.pack (' B ', data_24_27[i]); Bytearray.append (byte); "#Format_28_2B是数据块大小, Formathead is all part of the front of it formathead = [B ' W ', b ' A ', b ' V ', b ' E ', B ' f ', B ' m ', B ' t ', B ', B ' \x10 ', b ' \x00 ', b ' \x00 ', b ' \x00 ', b ' \x01 ', b ' \x00 ', b ' \x01 ', b ' \x00 ', b ' \x11 ', B ' + ', B ' \x00 ', b ' \x00 ', b ' "', B ' V ', b ' \x00 ', b ' \x00 ', b ' \x02 ', b ' \x00 ', B ' \x1 0 ', B ' \x00 ', B ' d ', B ' a ', B ' t ', B ' a ']; For I in range (len (formathead)): Bytearray.append (Formathead[i]); For I in range (4): byte = Struct.pack (' B ', data_size[i]); Bytearray.append (byte); #写出到文件 print (' File write start. >>>'); s = '; s = filename+ '. wav '; Fout= open (S, ' WB '); size = Len (ByteArray); For I in range (size): Fout.write (Bytearray[i]); size = Len (Samplearray); Sizeidle = Len (idlewave); For j in range: For I in range (size): Fout.write (Samplearray[i]); Fout.close (); Print (' The file is finished writing. '); #声音数据的生成 def Wavedatagen (self): Tian1 = Voice.tian.tone_tian1; Di1 = Voice.di.tone_di1; Xuan1 = Voice.xuan.tone_xuan1; Huang1 = voice.huang.tone_huang1; Idle = Self.idlewave (); data = []; Sarray = [' Tian1 ', ' di1 ', ' xuan1 ', ' huang1 ', ' di1 ', ' xuan1 ', ' huang1 ', ' tian1 ']*2; For I in range (len (sarray)): Data + = eval (sarray[i]); Data + = idle*30; return data; def read (): fin = open (' ... /input.txt ', ' R '); array = []; For line in Fin.readLines (): if (line[0]!= ' spell ' and Line[0].isalpha ()): Array.append (line[:-1]); #print (len (array)); Fin.close (); For I in range (len (array)): print (' \ ' +array[i]+ ' \ ', ', end = '); if (i%10 = = 9): print ("); #print (array); def getfilesize (sFile): size = GetSize (sFile); #print (' The size of the file {0} is {1} bytes '. Format (sFile, size)); return size;def Countzero (array, judgevalue): Count = 0; For I in range (len (array)): if (ABS (Array[i) < Judgevalue): Count+=1; return count; def tmp (): if (0): Pron = Voice (); terms = Pron.combineyinjie (); Print (' Total number of syllables {0} '. Format (len (terms))); Read (); "' Index = 2; Pron = Voice (); if (index = = 1): #把录音的音节去除空白部分 pron.yinjieprocess (' huang1.wav '); elif (index = = 2): #写声音文件 pron.writewav (); "If __name__ = = ' __main__ ': tmp ();</span>
The end of this section, to know how to funeral, please see tell.
[history from the beginning] the NO. 281 section begins the language of the world of words and languages