• 検索結果がありません。

Speech-to-text input method for Web system using Javascript

N/A
N/A
Protected

Academic year: 2021

シェア "Speech-to-text input method for Web system using Javascript"

Copied!
4
0
0

読み込み中.... (全文を見る)

全文

(1)SPEECH-TO・TEXT INPUTお1ETHOD FOR WEB SYSTEM USING JAVASCRIPT Ryuichi Nisùnura1, Jumpei Miyake2, Hideki Kmvahara1,ωld Toshio Irùw1. lPaculty of Systems Engineering, W必<.ayama University, Japan 2Graduate School of Information Science, Nara Institute of Science and Technology, Japan. ABSTRACT. collecting 4‘003 inputs in a period of seven months from real llsers The collected voices are tested by using our speech recognizer to. We have deveJoped a speech-to-text input method for web systems.. investigate the actual conditions during web use. The system is provided as a JavaScript Jibrary incJuding an Ajax­ like mechanism based on a Java appJet, CGI programs. and dynamic HTML documents.. 1.1. Voice-enabled web systems. lt aJJows users to access voice-enabled web. pages without requiring special browsers. Web d巴V巴lopers can em­. Many advanced web systems Ihat enable voice-based interactions. bed it on lheir web page by inserting only one 1ine in the header field. have been proposcd in lhe past. Voice Extensible Markup Language J 2 (VoiceXML) , which is the W3C (World Widc Web Consortium). of an HTML document. nlÎs study also aims al observing natural spoken interactions in personal environments. We have succeed巴d in. standard XML fonnat, can be used to develop a spoken dialogue. collecting 4,003 inpuls during a period of seven monlhs via our pub­. interface with a voice browser[6]. SALT (Speech Application Lan­ 3 guage Tags) is also an extension of HTML that adds a speech in­. lic Japanese ASR server. 1n order to cover out-of-vocabulary words 10 cope wilh some proper nouns, a web page to register new words. terface to web pages[7]. They require special add-on prograllls or. inlo th巴 language model ar巴 developed. As a result. we could oblain. customized web browsers. Therefore, users must preinstall a spcech. an improvemenl 01' 0.8% in the recognition accuracy. Wilh regard to. recognition ,md syn由民is engine and prepare nonstandard programs. the acoustical condilions, an SNR of 25.3 dB was observed.. for voicc recording.. lndex Terms- Spe巴ch recognition, Speech communication. 1n­. However, their complicated setup program耳. m政e it difficult for users to access voice-enabled websites nle WebGalaxy system[8][9] is a Java-based system. Although. lernel, User inlerfaces. it can be used to realiz.e a spokcn int巴rface on web pages, w巴b deveJ­ opers need. 1. ll可TRODUCTION. LO. study speech technologics in order to develop voice­. enabled wcb pages 1n order to obtain a large amount of actual voice data, low cost. We have developed a speech recognition interface to realize us巴ful. and e仔ört for users and developers are impo口ant in introducing spo­. voice-enabled web systems. lt is provided as a JavaScript library. ken interfaιe. Our method can offer a suitable design for perforrning. comprising a sophisticated mechanism based on a Java applet, CGI. 自eld tests of spoken interface systems in homc ,md ofiìce environ­. programs, and Aj鉱ーlike dynamic HTML documents. We can eas­. ments.. ily introduce a speech-to-text input method to aJl web pages. On. It is also practical and reasonable with regard to develop. voice-enabled websit巴s. the client side, we can access the voice-enabled websites using ba­ sic browsers without any add-on programs. The users can use a basic PC and web browsers such as Tnternet Explorer, Mozilla Fir巴fox, and. 2. SPEECH-TO-TEXT JAVASCRIPT LlBRARY. Safari. Therefore, our method can be easily used by web developers, 巴ditors,出ld bloggers who may nol have lechnical expertis巴. They. 2.1. How to use (User's viewpoint). can embed our interface by inserting only one line of code in lheir. Figure 1 shows voicc-cnabled web p岨ges that usc our method.. HTh位document. lt is not required for bolh Ihe users and the de­. Our mcthod 0仔ers a sp巴氾:ch-to-text inþut m巴thod for free text in­. velopers to prepare speech r官cognition programs by using our public. put 紅eas by using the "<INPUT TYPE="t色xt" .. sh 紅ed Japanese speech recognilion server (ASR server). “くTEXTAREA> .... This study叫so aims at observing natural human-machine spo­ ken interactions in home and office environments.. and. The re氾ording panel is opened when a uscr double c1icks on the. A large-scale. text IIlput紅ea. The pan巴I that opens upon c1icking is a dynai m c. voice database is indispensabl巴 for the study of voice interfaces. We. HTML program written in the JavaScript language. Tt also contains. have been collecting voices in cases such as silllulated scenarios,. a button implemented as a pure J ava applet that records lhe voice of. WOZ (Wizard of Oz) tests[I], telcphone-bascd systcllls[2, 3]‘and. a user. W hen Ihe r官cording p,mel is activated by pressing lhe button,. public space tests[4]. However, an cvaluation of voices captured by. the voice of a user can be recorded by the microphone of a c1ient Pc.. normal PCs is still insufficient to organizc a voice database for per­. After the button is released. the button applet begin s to upload the. sonaJ us巴Tn order to dcv巴Jop and utiJize the sp巴ech intelface further,. recοrded signaJs to the ASR server. The button applet also provides. it is important to know the recording conditions prevalcnt in home. visual feedback to the user.. and offìce environmentsl5]. Furthcr, it is also impoltant to know the. DUling voice recording, a bar of the. button becomes a power level me町. configurations of the PCs us巴d for recording voices. 1n order to rcal­. The users c,m monitor their. voice signal level by observing Ihe red bar.. ize th巴 actual data collections, the proposed method has a rcmarkable dcsign suitabl巴 for the field testing of thc spoken int巴rface system.. I http://www.voi印式ml.orgl. Our speech recognition engine s巴rver has gathered all input voices. 2http://www.w3.orgl. using our JavaSclipt Iibrary over the Tnternet. We have succeeded in. 3htlp://www.saltforum.org/. 978・1・4244・3472・5/08/$25,00 <<'d2008 IEEE. . .>". </TEXTAREÞ.>" HT恥1L elements. 209. SLT 2008. qu ハhu ワ臼.

(2) ) 4・E (. Browser on Client PC. Double click a input form. 登金笠往生"e. (2). Shared ASR Server. to open recording p回el. λ力都を'iづルフリ、,ヲして、ださい.. Recording p田el ‘i治急会]. 「一一. is displayed. 入力慣をタヲルヲリッヲυでくだ乱、.. 域担昆忌 _' . . ...._�.�...,.. 湖凶削路二以r . .. (3). r:;j�.nJ. 「一一. Press the button to record a voice. 入力掴をタブルヲリンりしてください.. �ll:::臨包按. (4). 和軍山から東京 込lÆほ=l. 「一一. 入力制をタブルヲリッヲレでください.. ぬ. ー. (5) 1"歌山科東京. Receive texts of recognized result,. Web Server. And click the [Add] button to mse口them to出e input form. Fig. 3. S�か叫re architectllre.. Finish. 入力翻をタブルヲリッヲντくたさい.. Fig. 1. Close-up. the button applet begins to transmit the data to the ASR server using. 01 speech-Io-Iexl illpUl a陀a on web pages. the HTTP request protocol (POST method). The yoice data saved in the ASR server is converted to text data immediately by the speech. The ASR server recognizes the received voice and outputs the. recognition module. The recognized text data is communicated to. transcribed text in an XML format to the JavaScript program. Then.. the button applet by the XML data in the HTTP response protocol.. the recording pmlel displays the transcribed text after the transmis­ sion is completed. Finally, the text is confirmed by the user by click­. Then‘th巴 button applet sends the r・eceived t巴xt data to the JavaScript 4 program using the LivcConnect protocol. As a result. the text is. ing the [Add] button on the panel. The confinned text is insened into. display巴d on the recording panel by the dynamic HT恥'IL program.. the text area. It is reasonabl巴 to exp巴:ct that web services such as a. The shared ASR serv巴r is implemented as an application of CGl. search engine, transit information, and language translation will be. programs running on a H1寸P (Web) s巴rver.. capable of accepting voice-inputted t巴xt via th巴 web browser. recognition module comprising a decoder, a trigram language 1110del,. 2.2. How to install (Developer's viewpoint). froll1 the button appl巴t are raw audio data (PCM, 16 bits, 44.1 kHz. Tt includes a speech. and an H恥1M acoustic model. Because the voice signals obtained sampling rate), the module converts signals to MFCCs parameter for. Figure 2 shows Ihe HTML code used to load the proposed interface.. transcribing the text with the decod巴r.. An additional setting for web developers is 10 only add the under­ lined part (<script .... > </SCIipt ... >) to the header fìeld of their. We have designed a server-side architecture on the basis of open and standard technologies using free software.. All message ex­. HTML document. Our system automatically enables a sp巴ech-to­. changes are perforn】ed over standa.rd inlernet prolocols such as the. input method to a11 text input areas.. HTTP. 1n other words, users can lItilize the proposed method from. Wc have namcd the library“w3voicc時f.js." and its current ver­ sion is distributcd at the following addrcss.. any location over a broadband network. Our system is compatible to deal with the fire w,ùl system in an office network.. http://w3voice. jp/engine!w3voiceIM.js. 3. PUBLIC FIELD-TEST O V ER THE INTERNET. W巴b dcvelopers can directly insen the above address into their HT五1L documents without downloading any files to their local. I. server computers. in the ASR server in order to analyze the actual conditions of spoken interactions in web lIse. We have succeeded in collecting 4.003 in­. 2.3. 九'1echanism. puts during a period of seven months (from Julyト2007 to January. A brief architecture of the proposed method is shown in Figure 3.. We released the proposed library (“w3voiceIM.js") on July 3, 2007 5 on our project's website . AJl recorded inpllts from山ers were stored. The system comprises three independcnt computers connected. through the Internet: client PC, Web se円er, and ASR server. The client PC and Web server are typical componcnts in a wcb system. 1n addition, for realizing our method, the shared ASR server is added; it communicates with the clicnt PC via the signal transmission protocol based on the HTTP (Hyp巴rtext Transfer Protocol)白 On the client Pc. c1icking on a text input field by a user in­ vokes the recording panel comprising a dynamic HTML program (JavaScript) and the bulton applet. The buuon applet is a key com­ ponent of our voice-enabled web framework. 1t is a Java applet (us­ ing Java Sound AP1 of standard Java APIs) that records the voice of a user and controls the entire proposed mechanism. The buuon ap­ plet has been implemented such that it functions as an upload routine similar to a web browser program. After a user's yoice is captured,. 28, 2008) from real users.. Figllre 4 plots the n umb er of i nput s per day. The number of max­ 6 imum accesses was 786山at had been record巴d at the news rel巳ase date. As shown in the figure, the systell1 has succeeded in acquiring data from a constant number of users. The number of unique TP ad­ dresses of the users was 530. In other words, we have successfully acquired informatioll through the public testing of our system from users who repeatedly used our system. Figure 5 shows the distributions of utlerance lengths. where the horizontal axis indicates the lengths of the inputs (s.). ln this figure, 731 (24.3%) zero-length inputs, which occun-ed du巴 to a single c1ick 4http://en.wikipedia.org/wik.i凡iveConnect 5http://engine.w3voice.jp/engine/ (in Japanese) 6http://slashdot.jp/articles/07/07/09/0715202.shtml Japane;e). 210. - 264-. (:-;ews. release. in.

(3) くhtml> くhcad>. くscript language="ja、ascript" type="textfjavascript" src=..http://w3voice.jp/engine/w3voiceIM.js..>くIscript>. くれtle>Text pageくItitle> くIhead> くbody> <lhtml>. Fig.2.Ane.λ:amp/e ofHTML dOCumellls.くscript> e/eme/l( is added 10 /oad Ihe JamScripl library (underlined parl).. Wc excluded zero-Iength inputs frol11 the test data. They were man­. 500. ually transcl;bed to transcriptions of user utterances. and segm巴nted into speech and si1ence parts to compute the SNR on the basis of the. July 3, 2007 News release 786 inputs. 400 由. sigmù powers. The number of morphemes in the tnmscriptions was 2.330. which imp1ies that出e sentences had 4.7 words per utterance.. 3∞ 主 c. 』. 4.2. ASR setup. 0200 株. We have developed our Japanese speech recognition program. which. 1∞. is the same as the ASR se円er used in daily operations An open source speech recognition engine Julius ver.3.5.3[ 1 0]. 0 7/07. 8/07. 9/07. 10/07. 11/07. 12/07. is adopted as the decoder. As for ,m HMM acoustic mod巴1, we used. 1/08. a speaker independent phon巴tic ti巴d-mixture (PTM) triphone model,. Day. which was trained from reading style speech in c1ean environments In order. Fig.4. Nllmber of inpllls per day.. cope with the wide Iinguistic variation encountered. oped from the following text collections:. 160 140 帥. 10. in web use, an original Japanese trigram language model was d巴vel­ •. Web texts gath巴rd by an automatic web crawler (388 1 k sen­. •. JapaneseW水ipedia7 texts (4077k sentences, 1 10 102k words).. tences‘39939k words).. 120. "51∞. ・List of trωn station names in Japan (235k sentences, 1 0 38k. a.. .5 80 句同・. words, 93 1 0 stations). 。. 株60. In total, our collection contained 526,726 different words. Among these, a lexical vocabulary with 50.4 1 8 words was organized by. 40. choosing frequ巴ntly occurring words (70 times or more in the case. 20. of nouns, 400 times or mor巴 in the case of others). 。 o. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10 11 12. 13 14 15 4.3. R esults. Time [sec.] Fig. 5. Distribution ofinput time lengrhs. (0くSく15). Figure 6 shows the distributions of word co汀官ct rates and SNRs. The y-axis indicales th巴 avcrage word correct ratc" [%]. while the x-axis. of the button applet,. are. excJuded.. indicates the avcraged SNR [dB) of each utterance.. Further, long inputs having a. length of over 1 5 seconds are not shown. The average length without. In total. the word coπecl rate was 43.0% among 4 96 lltterances.. zero-Iength inputs was 2.6 seconds. It was shown that the voices in. The trigram testset perplexity was 49.8, ,md an out-of-、ocab叫lary. web use usually comprised short sentences. rate agall1s1出e test ぬta was 4.1%. We included 2 1 0 data (42.3% of 496 utterances) who喧巴 word. 4. EVALUATIONS. coπect rate is 0%. These were usually caus巴d by the llse of some. In evaluations, we tested the speech recognition rates using the co1-. ances with a recognition rate of 1 00% also existed. We can say that. proper nOU11S. 1ected real voices. We a150 examined the SNR (Speech-to・Noise. in limited expressio11s. 111 the next br官ath. 157 1I1ter­. the insufficient r氏ognition accuracy is due 10 mlsmatches of linguis合. Ratio) of the r巴cord吋signa1s in order to investigate the recording. tic characters between the se川ence and language models.. conditions of a user、s envlromnents. We could not observe a臼gm自cant correlation between recog­ nition rates and SNRs. The total average of the SNR was 25.3 dB Moreover, there wer官 few utterances that were made with very bad. 4.1. Test data. conditions in a noisy envir'omnent. The results prove that improving. With regard to the test data, 496 voices were extracted from the col­. 7ht中://ja.wikipedia.orgJ. lected data, which were recorded from July 10 to August 23, 2007. 211. にd 《hu ワ臼.

(4) E仔ects such as increased inseltion en'ors due to白e addition of short. =・トー ... 100. words (e.g. “Wii"). For improving the language models, it is nec­. essary to dev巴lop a method for dynamic vocabulary restructuring in. { ポ ご ωω』 』 00言 。〉〉. 90 80. ・. .・. •. .. . 一一一一一一一-ー . ・・圃晴.. 70. order to add unknown words provided by the users.. • 一一一 .. •. 6. CONCLUSIONS. . ... 60. A speech-to-text JavaScript library for web systems is proposed. 50. based on an Ajax-like mechanism comprising a Java applet. CGI programs. and dynamic HTML pagcs.. 40 3. 0. lt enables users to access. voicc-cnabJed web pagcs without requiring spccial browscrs and. •. add-on programs. Notable advantagcs for wcb dcvelopers include thc ease of installing our system into a wcb page.. 20. Our public. ASR servcr has ga山crcd a large numb巴r of input voices in order to obscrve natural human-machine spoken interactions in personal. 一 酔泣. 句 ‘ a ト -. cnvironments. Wc have succeeded in collecting 4,∞3 inputs during a pcriod of seven months. A web page used for registering unknown. 34. words conduced 0.8% improvements of recognition accuracy. An investigation of the acoustical conditions revealed an SNR of 25.3. pH 川. n α ρ. 一 ad i--. o. r. ムυ. F. D 40 0 b. J 2 R K. 24. N 川 CU 川 d F 《 h u- 乙 内,‘ n. 22. ω 0 」 ' Y M 匂 一内 Ru k 岬 A → di 円o. 10 〆0. dB. ln future studies. we plan to introduce linguistic domain controls according to the contents of web pages. ln order to realize this, a task estimation algo吋thm for a web page will be investigated.. 7. REFERENCES い1 N. Kawaguchi et al., '‘Multim巴dia Corpus of In-Car Speech Communication;' JOllmal of VLSI Sigllα1 Processillg-Systems. forSigl凶I,lmage.αnd Video Te clmology, vol.36, pp. 1 53-159, 2004.. F ig.7. 恥b p αge Jo r unk1/own \Vord regislratiolls. [2] A. Raux. et al., the linguistic perfonnance is necessary to improve speech recogni­. tersp何ch2006,pp.65-68,2006. tion accuracies. For example, sp巴cifying the linguistic task domain by referring to the web content would lead to conduce good accura­. ,‘ Doing Res回rch on a Deployed Spoken Dia­. logue Syst巴m: One Year of Let's Go! Experience," Proc. bト [3) M. Tumnen, et ,ù., “Evaluation of a Spoken Dialogue System with Usability Tests and Long-term Pilot Studies: Similari­. cles.. ties and Di仔'erences." Proc. Inter5peech2006, pp. 1 0 57-1060, 200 6.. 5. UNKNOWNV再!ORD REGISTRATIONS. [4) R. Nisimura et al., '‘Operating a Public Spoken Guidanc巴 Sys­ As shown in the evaluation results, a linguistic mismatch was one of. tem in Real Environment". Proc. Interspeech2005. pp.845. the main causes of the insufficient ASR perfonnance. 1n particular,. 848.2005.. the influence of unknown words in the language modcl appears to be noticeable. In order to address this problem、our A5R se円er pro­. [5] S. Hara et al..“An online customizable music retrieval system. with a spoken dialogue interfaceぺThe Journal of the ACOUSlト. vides a w巴b page (Figure 7) where users can register new words into. cal Sociely of America (4th Joint Meeting of ASA/,九SJ). Vol. the language model. ltems that can be entered on this page are listed include: •. Strings, ・ Reading (Japanese syllabaries),. (VoiceX恥1L) Version 2.0", W3C Tec/llIical Reports and Pub­. lications, W3C, 2004.. ・Comments. New word entries from among these items are added to the 1110del with a probabiliry value that is reserved for the unknown word c1ass (くUNK>> “5t吋ngs" is a characrer string used for lexical 巴nt甘r円1ぽes “Read出11川ng" would be con、v巴口巴d. tωo. 120 , No. 5‘Pt. 2, pp.3378-pp.3379, Nov. 2006 [6) S. McGlashan et al., "Voice Extensible Markup Language. [7) “SALT: Speech Application Tags (SALT) 1.0 Speci自cation", the SALT Forum. 2002 [8) R. Lau et al.. " WebGalaxy - Integrating Spoken Language and Hypertext Navigation". Proc. EUROSPEECH97. pp.883-886,. pronunci泊ation symbols by us釘ltl】g. 1997. t白h巴 Ja叩pa創n児巴只児巴 Kana-rωo-Romτna勾:ji rou山t111e se匂mantlc釘l1l0tations i川n the future.. [9) A. Gmenstein et al., “Scalable and Portable Web-Based Mul­ timodal Dialogue Intcraction with Geographical Databaseぺ. We have obtained 58 new word entries from the users in the field-test of our public ASR server.. Proι11IIerspeech2α?6. pp.453-456, 2006.. Then, experimental results. showed that an improvement of 0 .8% in the recognition accuracy was obtained by the addition of these new words in the model vocab­. い0] A. Lee et aし “Julius - An Open Source Real-Time Large. lllary. We can say that 山e advantage of llnknown word registrations via the web page was confirmed although there were some adverse. 212. - 266-. Vocabulary Recognition Engine", Proc目EUROSPEECH2001, pp. l 69 1 - 1 694,2∞ l.

(5)

Figure  2  shows Ihe HTML code used to load the proposed interface.
Fig. 5. Distribution ofinput time lengrhs.  (0くSく15)

参照

関連したドキュメント

Finally, we give an example to show how the generalized zeta function can be applied to graphs to distinguish non-isomorphic graphs with the same Ihara-Selberg zeta

Let X be a smooth projective variety defined over an algebraically closed field k of positive characteristic.. By our assumption the image of f contains

The dimension d will allow us in the next sections to consider two different solutions of an ordinary differential equation as a function on R 2 with a combined expansion.. The

Here we continue this line of research and study a quasistatic frictionless contact problem for an electro-viscoelastic material, in the framework of the MTCM, when the foundation

We present sufficient conditions for the existence of solutions to Neu- mann and periodic boundary-value problems for some class of quasilinear ordinary differential equations.. We

Applying the conditions to the general differential solutions for the flow fields, we perform many tedious and long calculations in order to evaluate the unknown constant coefficients

(3) We present a JavaScript library 2 , that contains all the al- gorithms described in this paper, and a Web platform, AGORA 3 (Automatic Graph Overlap Removal Algorithms), in

Awad and Sibanda 22 used the homotopy analysis method to study heat and mass transfer in a micropolar fluid subject to Dufour and Soret effects.. Most boundary value problems in