JP4439599B2 - Input data audio output device - Google Patents

Input data audio output device Download PDF

Info

Publication number
JP4439599B2
JP4439599B2 JP18944297A JP18944297A JP4439599B2 JP 4439599 B2 JP4439599 B2 JP 4439599B2 JP 18944297 A JP18944297 A JP 18944297A JP 18944297 A JP18944297 A JP 18944297A JP 4439599 B2 JP4439599 B2 JP 4439599B2
Authority
JP
Japan
Prior art keywords
data
input
message
unit
input data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP18944297A
Other languages
Japanese (ja)
Other versions
JPH1083276A (en
Inventor
信夫 鯨岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP18944297A priority Critical patent/JP4439599B2/en
Publication of JPH1083276A publication Critical patent/JPH1083276A/en
Application granted granted Critical
Publication of JP4439599B2 publication Critical patent/JP4439599B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Description

【0001】
【発明の利用分野】
本願発明は、計算機の利用者のキーボード操作を音声出力することで、利用者の操作を聴覚的に利用者に通知するシステムに関する。とくに、本願発明では、計算機に接続されるキーボードの種別に関係なく正確な通知を行うことを可能とする。
【0002】
【従来の技術】
従来から、キー入力されたデータを音声出力するワードプロセッサ等が知られいている。
【0003】
【従来技術の問題点】
しかし、これらのワードプロセッサはハードウェアとそれを制御するソフトウェアが一体となって構成されている。すなわち、ハードウェア機器を異なる種類のものと交換するようなことは想定されていない。そのため、例えばキーボードを別の種別のキーボードと交換した場合などは、正常な動作(正確な音声出力)が保証されないという問題があった。
【0004】
この問題は以下の理由に起因する。キーボードには、文字を入力するための文字キーと、文字入力を拡張するための特殊キーがある。文字キーは、例えば英字キーや数字キーで、特殊キーは例えば、シフトキーや変換キー、確定キー等である。
キーボードから入力される文字にはそれぞれ文字コードが割り当てられている。また、一つの文字キーには通常複数の文字が割り当てられており、シフトキーなどの特殊キーと併用することで、同一の文字キーに割り当てられた複数の文字を区別して入力することが可能となっている。同一キーに対する複数の文字の割り当てかたは、幾つかの標準があるものの、キーボードの種別によって異なっている。
【0005】
従来は、どのキーが打鍵されたかを直接判断して処理を行っていたため、異なる種別のキーボードに取りかえた際に正確な音声出力が出来なくなっていた。
【0006】
【発明が解決しようとする課題】
このような問題点に鑑み、本願発明の目的は、キーボードを異なる種別のキーボードと交換しても正常な動作(正確な音声出力)が保証される入力データ音声出力装置を提供する事にある。
【0007】
【課題を解決するための手段】
本発明においては、入力装置またはかな漢字変換処理部からアプリケーションプロクラムに対して所定の規則に基づいて通知されるデータを監視し、その中から必要なデータを抽出し、それを音声出力することにより上記課題を解決する。
【0008】
【発明の実施の形態】
図1は本発明を実施する計算機システムのハード構成を示す図である。図中、101はCPU、102は主記憶装置、103は外部記憶装置、104はディスプレイ、105はキーボード、106はマウス、107はフロッピーディスク・ドライブ、108はフロッピーディスク、109はPCMデータ再生装置、110はスピーカである。
【0009】
CPU101は主記憶装置102上のプログラムを実行するものである。外部記憶装置103には、オペレーティングシステムの他、各種のプログラム及びデータが格納される。システムが起動されると外部記憶装置103に格納されているオペレーティングシステムが主記憶装置102にローディングされ、それ以降のプログラムの動作を制御する。計算機システムのオペレータはディスプレイ104を見ながらキーボード105やマウス106等を操作する。PCMデータ再生装置109は、プログラムから通知されたPCMデータをアナログ電気信号に変換して出力する装置である。PCMデータ再生装置109によって出力されたアナログ電気信号はスピーカ110によって音声として出力される。
【0010】
本発明の実施形態の構成要件の一部を担うプログラムは、フロッピーディスク108や図示しないCD−ROM等の可搬型記憶媒体に格納されて流通される。フロッピーディスク108に格納されたプログラムは、一旦外部記憶装置103にインストールされて使用可能な状態に設定される。また、これらのプログラムは図示しない通信制御装置を用いて、ネットワーク経由で他の計算機システムから転送されて、外部記憶装置103にインストールされる場合もある。
【0011】
図2は図1で示した計算機システム上で動作するプログラム、プログラムの扱うデータ及び図1で示した一部のハードウェア装置の関係を示す図である。
本システムを構成するプログラムは、デバイスドライバ111、メッセージ登録部112、かな漢字変換処理部115、メッセージキュー監視部117、入力データ変換部118、読み上げ部119、音声データ変換部120、登録部121からなる。
【0012】
これらのプログラムは、メッセージキュー113、呼出し関数リスト114、入力データ変換辞書122、登録用音声データ123、読み上げ用音声データ124等のデータを参照・更新しながら処理を行う。
本発明を実施するためのプログラムやアプリケーションプログラム等のは本システム上ではプロセスと呼ばれる実行体としてオペレーティングシステムの配下で必要に応じて外部記憶装置103から主記憶装置102にローディングされてCPU101によって実行されることで動作する。
【0013】
プロセス間のデータの授受は、データを受信するプロセスが、そのプロセスの呼出し関数を、予め呼出し関数リスト114に登録しておき、データを発信するプロセスがデータをメッセージとして登録するようにメッセージ登録部112に依頼し、依頼を受けたメッセージ登録部112がメッセージをメッセージキュー113に登録するとともに呼出し関数リスト114に登録されている呼出し関数を呼出し、呼び出された呼出し関数のプロセスが、メッセージキュー113からメッセージを抽出し、その中からデータを取り出すことで行われる。
【0014】
メッセージ登録部112はデハイスドライバ111やかな漢字変換処理部115などからのメッセージ登録の依頼を受付け、依頼されたメッセージをメッセージキュー113に登録するとともに、呼出し関数リスト114に登録されている順に呼出し関数を呼び出すよう動作するプログラムであって、オペレーティングシステムの一部である。
【0015】
図3にメッセージキュー113の構造を示す。メッセージキュー113は複数のメッセージをポインタでリンクしたものである。各メッセージは、メッセージ種別、パラメタ、次メッセージへのポインタからなる。パラメタの内容はメッセージ種別によって異なる。デバイスドライバ111やかな漢字変換処理部115によって登録依頼されるメッセージについては後に詳しく説明する。
【0016】
呼出し関数リスト114は、メッセージ登録部112がメッセージキュー113にメッセージを登録した際に呼び出すプロセスの呼出し関数のアドレスを呼び出す順に記憶したものである。
キーボード105はオペレータによるキーの打鍵に対応して、キーに割り当てられているキーコードを発生する。
【0017】
デバイスドライバ111は、キーボード105の発生したキーコードを入力として、入力モード等に応じて、文字コードおよび特殊キーコードを生成するとともに、メッセージ登録部112に対して生成した文字コード及び特殊キーコードをメッセージキューに登録するよう依頼するプログラムである。
本実施形態においては、文字コードとしては、英数字及び記号については1バイトのASCIIコードを使用し、特殊キーコードは独自に1以上255以下の数字(8ビットで表現可能)を割り当てる。特殊キーと特殊キーコードの対応を図4に示す。
【0018】
デハイスドライバがメッセージ登録部に登録依頼するメッセージを図5及び図6に示す。図5は、文字コードが入力されたことを通知するメッセージの例で、文字”A”が入力されたことを通知するメッセージである。メッセージ種別は「文字入力」、パラメタは文字”A”のASCIIコード0x41である。図6は、特殊キーが打鍵されたことを通知するメッセージの例で、特殊キーの一つである「シフトキー」が打鍵された事を通知するメッセージである。メッセージ種別は「特殊キー」、バラメタはシフトキーに割り当てられた特殊キーコード0x10である。
【0019】
デバイスドライバ111は、複数種類のキーボード105に対応して複数用意されるか、キーボード105の交換と同期して交換される。
かな漢字変換処理部115は本システム上で動作する一つのプロセスであって、メッセージキュー113に登録されているメッセージの中で、キー入力に関するメッセージに基づいて、入力された仮名を漢字に変換する。かな漢字変換処理部115の動作の一例を図7に基づいて説明する。
【0020】
かな漢字変換処理部115は、起動されると、まず図示されないかなバッファを初期化すなわちバッファのクリアを行う(ステップS131)。バッファの初期化が完了すると、メッセージ待ち状態になる(ステップS132)。メッセージ登録部による呼出し関数の呼出しを契機に次のステップに進む。
メッセージキューを検索し、キー入力に関するメッセージの有無をチェックする(ステップS133)。ステップS134において文字入力のメッセージが登録されていると判定した場合は、メッセージをメッセージキュー113から削除するとともに(ステップS135)、文字コードをかなバッファの最後に追加し(ステップS136)、変換中の未確定漢字(この場合はヌル)とかなバッファの内容をパラメタとする未確定メッセージを登録するようメッセージ登録部112に依頼する(ステップS137)。
【0021】
次にステップS138において変換キーの打鍵を表すメッセージが登録されていると判定した場合は、メッセージをメッセージキューから削除するとともに(ステップS139)、読みを所定のアルゴリズムに従って漢字に変換し(ステップS140)、変換して得られた漢字及びかなバッファ中の読みをパラメタとして未確定メッセージを登録するようメッセージ登録部112に依頼する(ステップS141)。
【0022】
次に、ステップS142において、確定キーの打鍵を表すメッセージが登録されていると判定した場合は、そのメッセージをメッセージキューから削除するとともに(ステップS143)、確定した漢字とかなバッファ中の読みをパラメタとして確定メッセージをメッセージキュー113に登録するようメッセージキュー登録部112に依頼する(ステップS144)。
【0023】
なお、かな漢字変換処理部115の動作は、変換が確定した際に確定メッセージを登録依頼し、未確定文字列(変換中の文字列及び読み)に変化が生じた場合に未確定メッセージを登録依頼する点を遵守したものであれば、上で説明した動作に限定されるものではない。
メッセージキュー監視部117は本システム上のプロセスとして動作するプログラムである。メッセージキュー監視部117の動作を図8を用いて説明する。メッセージ登録部112からメッセージキュー監視部117の呼出し関数が呼び出されると処理を開始する。ここで、かな漢字変換処理部115が動作しているかどうかによって処理が分かれる(ステップS152)。
【0024】
かな漢字変換処理部115が動作していない場合の動作は以下の通りとなる。メッセージキュー113中のキー入力に関するメッセージを参照し(ステップS153)、それが文字コードの入力を表すメッセージであれば、文字コードの先頭に0x00を付加して2バイトに拡張したものを以後の処理の検索キーとし(ステップS155)、特殊キーの打鍵を表すメッセージであれば、特殊キーコードの先頭に0xFF(16進数のFF)を付加して2バイトに拡張したものを以後の処理の検索キーとする(ステップS156)。こうして得られた検索キーをステップS163において入力データ変換部118に通知する。
【0025】
かな漢字変換処理部115が動作している場合の動作は以下の通りとなる。ステップS157において、メッセージキュー113を参照して得られたメッセージが確定メッセージであると判定されると、確定メッセージのパラメタ中の確定漢字を抽出しそれを読み上げ文字列とする(ステップS158)。ステップS159で参照して得られたメッセージが未確定メッセージであると判定された場合には、未確定メッセージ中に漢字が有るかどうかを判断し(ステップS160)、漢字がある場合には、その漢字を抽出しそれを読み上げ文字列とする(ステップS161)。
【0026】
漢字が無い場合には読みの最後の文字を抽出しそれを読み上げ文字列とする(ステップS162)。以上の処理で得られた読み上げ文字列をステップS164において文字列音声データ変換部120に通知する。
次に図9を用いて入力データ変換辞書122について説明する。入力データ変換辞書122は、検索キー、読み上げ文字列、音声データファイル名、データタイプからなる複数のレコードを格納したファイルである。検索キーは入力データ変換辞書122を検索する際のキーとなるデータで2バイトで構成される。データタイプは読み上げ文字列と音声データファイルの何れのデータを用いて音声出力するかを示すデータである。読み上げ文字列は、読み上げ部によって読み上げられる文字列、音声データファイル名はPCMデータを格納したファイル名を表す文字列である。
【0027】
登録用音声データ123は、入力データ変換辞書122内の音声データファイル名で示される複数のファイルの集合である。
図10を用いて入力データ変換部118について説明する。入力データ変換部118は、メッセージキュー監視部117から通知された検索キーで入力データ変換辞書122を検索するプログラムである。入力データ変換部118は先ず、メッセージキュー監視部117から通知された検索キーで入力データ変換辞書122を検索する(ステップS171)。
【0028】
検索して得られたレコードのデータタイプの値が1の場合は、読み上げデータはデータタイプの値(この場合は1)と読み上げ文字列によって読み上げデータを構成し(ステップS173)、データタイプの値が2の場合は、読み上げデータはデータタイプの値(この場合は2)と音声データファイル名によって読み上げデータを構成する(ステップS174)。読み上げデータの生成が完了すると、生成した読み上げデータを読み上げ部119に通知する(ステップS175)。
【0029】
図11を用いて読み上げ部119について説明する。読み上げ部119は、入力データ変換部118から通知された読み上げデータのデータタイプをチェックし(ステップS181)、データタイプの値が2の場合は、読み上げデータ中の読み上げ文字列を文字列音声データ変換部120に通知し(ステップS182)、データタイプの値が1の場合には、読み上げデータ中の音声データファイル名によって示されるファイルからPCMデータを読み込み(ステップS183)、音声データ発生部に通知する(ステップS184)。
【0030】
図12を用いて、読み上げ用音声データ124について説明する。読み上げ用音声データ124は、読み上げ文字列と、PCMデータを対応付けて記憶したファイルである。
文字列音声データ変換部120は、メッセージキュー監視部117または読み上げ部119から通知された読み上げ文字列をキーに読み上げ用音声データ124を検索し、得られたPCMデータを音声データ発生部109に通知するプログラムである。文字列音声データ変換部120の処理は既存の文章読み上げ装置の処理と同様の処理を行うのでここでは詳しい説明は省略する。
【0031】
図13は登録部121によってディスプレイ104に表示される操作画面の一例である。オペレータは、この画面をキーボード105及びマウス106を用いて操作し、キー毎に、入力の際の音声出力を行うか否か、音声出力を行う場合には、文字列を読み上げるのかそれともPCMデータを再生するのか、文字列を読み上げる場合の読み上げ文字列は何か、PCMデータを再生する場合のPCMデータを格納したファイルのファイル名は何か等を指定する。登録部121はオペレータの指定を受け付けて、指定されたキーに対応する入力データ変換辞書のレコードの内容を変更する。
【0032】
最後に同音異義語の読み上げについて説明する。例えば「私立高校」と「市立高校」の読みは共に「しりつこうこう」であるが、これらの文字列のそれぞれに対して異なる音声出力をさせるためには、文字列音声変換辞書内の「私立高校」のエントリと「市立高校」のエントリにそれぞれ異なるPCMデータを登録しておけばよい。
【0033】
【発明の効果】
本発明により、入出力装置を種別の異なる他の装置と交換した場合であっても、入出力装置を用いて入力されたデータを正確に音声出力することが可能となる。また、かな漢字変換処理中の未確定の漢字または確定した漢字を読み上げるので、同音異義語についても区別して音声出力することが可能となる。
【図面の簡単な説明】
【図1】 一実施形態のハード構成図
【図2】 一実施形態のハード、プログラム及びデータの関連を示す図
【図3】 メッセージキューの構造を示す図
【図4】 特殊キーと特殊キーコードとの対応を示す図
【図5】 文字入力を通知するメッセージの例
【図6】 特殊キーの打鍵を通知するメッセージの例
【図7】 かな漢字変換処理部の動作フローの一例を示す図
【図8】 メッセージキュー監視部の動作フローを示す図
【図9】 入力データ変換辞書の構造及び内容の例を示す図
【図10】 入力データ変換部の処理フローを示す図
【図11】 読み上げ部の処理フローを示す図
【図12】 読み上げ用音声データの構成を示す図
【図13】 登録部の表示する画面の一例を示す図
【符号の説明】
101 CPU
102 主記憶装置
103 外部記憶装置
104 ディスプレイ
105 キーボード
106 マウス
107 フロッピーディスク・ドライブ
108 フロッピーディスク
109 PCMデータ再生装置
110 スピーカ
111 デバイスドライバ
112 メッセージ登録部
113 メッセージキュー
114 呼出し関数リスト
115 かな漢字変換処理部
116 アプリケーションプロクラム
117 メッセージキュー監視部
118 入力データ変換部
119 読み上げ部
120 文字列音声データ変換部
121 登録部
122 入力データ変換辞書
123 登録用音声データ
124 読み上げ用音声データ
[0001]
[Field of the Invention]
The present invention relates to a system for audibly notifying a user's operation to a user by outputting a keyboard operation of the computer user by voice. In particular, according to the present invention, it is possible to perform accurate notification regardless of the type of keyboard connected to the computer.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, a word processor or the like that outputs voice data of key input data is known.
[0003]
[Problems of the prior art]
However, these word processors are configured by integrating hardware and software for controlling the hardware. That is, it is not assumed that the hardware device is replaced with a different type. Therefore, for example, when the keyboard is replaced with another type of keyboard, there is a problem that normal operation (accurate audio output) is not guaranteed.
[0004]
This problem is caused by the following reason. The keyboard has character keys for inputting characters and special keys for extending character input. The character key is, for example, an alphabet key or a numeric key, and the special key is, for example, a shift key, a conversion key, a confirmation key, or the like.
Each character input from the keyboard is assigned a character code. Also, multiple characters are usually assigned to one character key, and when used in combination with special keys such as shift keys, multiple characters assigned to the same character key can be distinguished and input. ing. Although there are several standards for assigning multiple characters to the same key, they differ depending on the type of keyboard.
[0005]
In the past, processing was performed by directly determining which key was pressed, so accurate voice output could not be performed when switching to a different type of keyboard.
[0006]
[Problems to be solved by the invention]
In view of such problems, an object of the present invention is to provide an input data audio output device that ensures normal operation (accurate audio output) even if the keyboard is replaced with a different type of keyboard.
[0007]
[Means for Solving the Problems]
In the present invention, the data notified from the input device or the kana-kanji conversion processing unit to the application program based on a predetermined rule is monitored, the necessary data is extracted from the data, and the data is output by voice. Solve the problem.
[0008]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a diagram showing a hardware configuration of a computer system for implementing the present invention. In the figure, 101 is a CPU, 102 is a main storage device, 103 is an external storage device, 104 is a display, 105 is a keyboard, 106 is a mouse, 107 is a floppy disk drive, 108 is a floppy disk, 109 is a PCM data reproducing device, Reference numeral 110 denotes a speaker.
[0009]
The CPU 101 executes a program on the main storage device 102. The external storage device 103 stores various programs and data in addition to the operating system. When the system is activated, an operating system stored in the external storage device 103 is loaded into the main storage device 102 and controls the subsequent program operations. The operator of the computer system operates the keyboard 105 and the mouse 106 while looking at the display 104. The PCM data reproducing device 109 is a device that converts the PCM data notified from the program into an analog electric signal and outputs it. The analog electrical signal output by the PCM data reproducing device 109 is output as sound by the speaker 110.
[0010]
A program that bears a part of the configuration requirements of the embodiment of the present invention is stored and distributed in a portable storage medium such as a floppy disk 108 or a CD-ROM (not shown). The program stored in the floppy disk 108 is once installed in the external storage device 103 and set in a usable state. In addition, these programs may be transferred from another computer system via a network and installed in the external storage device 103 using a communication control device (not shown).
[0011]
FIG. 2 is a diagram showing a relationship between a program operating on the computer system shown in FIG. 1, data handled by the program, and some hardware devices shown in FIG.
The program constituting this system includes a device driver 111, a message registration unit 112, a kana-kanji conversion processing unit 115, a message queue monitoring unit 117, an input data conversion unit 118, a reading unit 119, an audio data conversion unit 120, and a registration unit 121. .
[0012]
These programs perform processing while referring to and updating data such as the message queue 113, the calling function list 114, the input data conversion dictionary 122, the registration voice data 123, and the reading voice data 124.
Programs, application programs, and the like for carrying out the present invention are loaded from the external storage device 103 to the main storage device 102 as necessary under the operating system as an execution body called a process on this system and executed by the CPU 101. To work.
[0013]
Data transfer between processes is performed by a message registration unit in which a process that receives data registers a call function of the process in the call function list 114 in advance, and a process that transmits data registers the data as a message. 112, the message registration unit 112 that has received the request registers the message in the message queue 113 and calls the call function registered in the call function list 114, and the process of the called call function is started from the message queue 113. This is done by extracting the message and extracting the data from it.
[0014]
The message registration unit 112 receives a request for message registration from the high-speed driver 111 or the Kanji conversion processing unit 115, registers the requested message in the message queue 113, and calls the call functions in the order registered in the call function list 114. Is a part of the operating system.
[0015]
FIG. 3 shows the structure of the message queue 113. The message queue 113 is obtained by linking a plurality of messages with pointers. Each message consists of a message type, a parameter, and a pointer to the next message. The content of the parameter varies depending on the message type. A message requested to be registered by the device driver 111 or the kanji conversion processing unit 115 will be described in detail later.
[0016]
The call function list 114 stores the call function addresses of processes to be called when the message registration unit 112 registers a message in the message queue 113 in the order of calling.
The keyboard 105 generates a key code assigned to the key in response to key pressing by the operator.
[0017]
The device driver 111 receives the key code generated by the keyboard 105 as an input, generates a character code and a special key code according to the input mode and the like, and generates the character code and special key code generated for the message registration unit 112. This is a program that requests registration in the message queue.
In this embodiment, as a character code, a 1-byte ASCII code is used for alphanumeric characters and symbols, and a special key code is uniquely assigned a number from 1 to 255 (representable by 8 bits). The correspondence between special keys and special key codes is shown in FIG.
[0018]
FIG. 5 and FIG. 6 show messages that the high-speed driver requests registration to the message registration unit. FIG. 5 is an example of a message notifying that a character code has been input, and is a message notifying that a character “A” has been input. The message type is “character input” and the parameter is the ASCII code 0x41 of the character “A”. FIG. 6 is an example of a message notifying that a special key has been pressed, and is a message notifying that a “shift key” that is one of the special keys has been pressed. The message type is “special key” and the parameter is the special key code 0x10 assigned to the shift key.
[0019]
A plurality of device drivers 111 are prepared corresponding to a plurality of types of keyboards 105 or are exchanged in synchronization with the exchange of the keyboard 105.
The kana-kanji conversion processing unit 115 is a process that operates on the system, and converts the input kana to kanji based on a message related to key input among messages registered in the message queue 113. An example of the operation of the kana-kanji conversion processing unit 115 will be described with reference to FIG.
[0020]
When activated, the kana-kanji conversion processing unit 115 first initializes a kana buffer (not shown), that is, clears the buffer (step S131). When the initialization of the buffer is completed, a message waiting state is entered (step S132). When the call function is called by the message registration unit, the process proceeds to the next step.
The message queue is searched to check whether there is a message related to key input (step S133). If it is determined in step S134 that a character input message is registered, the message is deleted from the message queue 113 (step S135), and a character code is added to the end of the kana buffer (step S136). The message registration unit 112 is requested to register an unconfirmed message using the unconfirmed Chinese character (in this case, null) and the contents of the kana buffer as a parameter (step S137).
[0021]
Next, when it is determined in step S138 that a message representing the keystroke of the conversion key is registered, the message is deleted from the message queue (step S139), and the reading is converted into kanji according to a predetermined algorithm (step S140). Then, the message registration unit 112 is requested to register the unconfirmed message using the kanji obtained by the conversion and the reading in the kana buffer as parameters (step S141).
[0022]
Next, when it is determined in step S142 that a message representing the keystroke of the confirmation key is registered, the message is deleted from the message queue (step S143), and the confirmed kanji and the reading in the kana buffer are parameterized. The message queue registration unit 112 is requested to register the confirmation message in the message queue 113 (step S144).
[0023]
The operation of the Kana-Kanji conversion processing unit 115 requests registration of a confirmation message when conversion is confirmed, and requests registration of an unconfirmed message when a change occurs in an unconfirmed character string (character string and reading being converted). As long as the points to be observed are observed, the operation is not limited to that described above.
The message queue monitoring unit 117 is a program that operates as a process on this system. The operation of the message queue monitoring unit 117 will be described with reference to FIG. When the call function of the message queue monitoring unit 117 is called from the message registration unit 112, the processing is started. Here, processing is divided depending on whether the kana-kanji conversion processing unit 115 is operating (step S152).
[0024]
The operation when the kana-kanji conversion processing unit 115 is not operating is as follows. A message related to key input in the message queue 113 is referred to (step S153), and if it is a message representing character code input, 0x00 is added to the beginning of the character code and expanded to 2 bytes. (Step S155), if the message represents the keystroke of a special key, a special key code with 0xFF (hexadecimal FF) added to the beginning and expanded to 2 bytes is used as a search key for subsequent processing. (Step S156). The search key obtained in this way is notified to the input data converter 118 in step S163.
[0025]
The operation when the kana-kanji conversion processing unit 115 is operating is as follows. If it is determined in step S157 that the message obtained by referring to the message queue 113 is a confirmed message, a confirmed kanji character in the parameters of the confirmed message is extracted and used as a read-out character string (step S158). If it is determined that the message obtained by referring to step S159 is an unconfirmed message, it is determined whether or not there is a Chinese character in the unconfirmed message (step S160). A kanji is extracted and used as a read-out character string (step S161).
[0026]
If there is no kanji, the last character of reading is extracted and used as a reading character string (step S162). In step S164, the character string speech data converter 120 is notified of the read character string obtained by the above processing.
Next, the input data conversion dictionary 122 will be described with reference to FIG. The input data conversion dictionary 122 is a file that stores a plurality of records including a search key, a reading character string, a voice data file name, and a data type. The search key is data that is a key for searching the input data conversion dictionary 122 and is composed of 2 bytes. The data type is data indicating which data is read out using a read-out character string or an audio data file. The reading character string is a character string read by the reading unit, and the voice data file name is a character string indicating a file name storing PCM data.
[0027]
The registration voice data 123 is a set of a plurality of files indicated by the voice data file names in the input data conversion dictionary 122.
The input data conversion unit 118 will be described with reference to FIG. The input data conversion unit 118 is a program that searches the input data conversion dictionary 122 using the search key notified from the message queue monitoring unit 117. First, the input data conversion unit 118 searches the input data conversion dictionary 122 using the search key notified from the message queue monitoring unit 117 (step S171).
[0028]
When the data type value of the record obtained by the search is 1, the read-out data is composed of the data type value (1 in this case) and the read-out character string (step S173), and the data type value Is 2, the read-out data is constituted by the data type value (in this case, 2) and the voice data file name (step S174). When the generation of the reading data is completed, the generated reading data is notified to the reading section 119 (step S175).
[0029]
The reading unit 119 will be described with reference to FIG. The reading unit 119 checks the data type of the reading data notified from the input data conversion unit 118 (step S181). If the value of the data type is 2, the reading character string in the reading data is converted into the character string voice data. 120 (step S182). If the value of the data type is 1, PCM data is read from the file indicated by the voice data file name in the read-out data (step S183) and notified to the voice data generation unit. (Step S184).
[0030]
The speech data for reading 124 will be described with reference to FIG. The speech data for reading 124 is a file in which a reading character string and PCM data are stored in association with each other.
The character string voice data conversion unit 120 searches the voice data 124 for reading using the read character string notified from the message queue monitoring unit 117 or the reading unit 119 as a key, and notifies the voice data generation unit 109 of the obtained PCM data. It is a program to do. Since the processing of the character string voice data conversion unit 120 performs the same processing as that of the existing text-to-speech device, detailed description thereof is omitted here.
[0031]
FIG. 13 is an example of an operation screen displayed on the display 104 by the registration unit 121. The operator operates this screen by using the keyboard 105 and the mouse 106, and for each key, whether or not to perform voice output at the time of input, and when performing voice output, whether to read a character string or PCM data. The user designates what is to be read, what is the read-out character string when reading the character string, what is the file name of the file storing the PCM data when playing back the PCM data, and the like. The registration unit 121 accepts the operator's designation and changes the contents of the record in the input data conversion dictionary corresponding to the designated key.
[0032]
Lastly, the reading of homonyms will be explained. For example, the readings of “private high school” and “city high school” are both “shiritsukokou”, but in order to output different voices for each of these character strings, Different PCM data may be registered in the entry “private high school” and the entry “city high school”.
[0033]
【The invention's effect】
According to the present invention, even when the input / output device is replaced with another device of a different type, it is possible to accurately output data input using the input / output device. In addition, since the unconfirmed Chinese character or the finalized Chinese character being read out during the Kana-Kanji conversion process is read out, it is possible to distinguish and output the homonyms.
[Brief description of the drawings]
FIG. 1 is a hardware configuration diagram of an embodiment. FIG. 2 is a diagram showing a relationship between hardware, programs, and data of an embodiment. FIG. 3 is a diagram showing a structure of a message queue. FIG. 5 shows an example of a message for notifying a character input. FIG. 6 shows an example of a message for notifying a special keystroke. FIG. 7 shows an example of an operation flow of a kana-kanji conversion processing unit. 8] A diagram showing the operation flow of the message queue monitoring unit. [Fig. 9] A diagram showing an example of the structure and contents of the input data conversion dictionary. [Fig. 10] A diagram showing the processing flow of the input data conversion unit. FIG. 12 is a diagram showing a processing flow. FIG. 12 is a diagram showing a structure of speech data for reading. FIG. 13 is a diagram showing an example of a screen displayed by a registration unit.
101 CPU
102 Main storage device 103 External storage device 104 Display 105 Keyboard 106 Mouse 107 Floppy disk drive 108 Floppy disk 109 PCM data playback device 110 Speaker 111 Device driver 112 Message registration unit 113 Message queue 114 Call function list 115 Kana-Kanji conversion processing unit 116 Application Program 117 Message queue monitoring unit 118 Input data conversion unit 119 Reading unit 120 Character string voice data conversion unit 121 Registration unit 122 Input data conversion dictionary 123 Registration voice data 124 Reading voice data

Claims (2)

入力装置から入力されたデータを入力データとしてアプリケーションプログラムに通知する入力制御部を備えた計算機システムにおいて動作する入力データ音声出力装置であって、
入力データ及びプロセスの発信するデータが登録されているメッセージキューを監視し、前記入力制御部からアプリケーションプログラムに通知される入力データのうち、文字コードの入力を表す入力データを抽出する通知データ監視部と、
通知データ監視部により抽出されたデータに関連付けられている音声データを音声出力する音声出力部とを備える入力データ音声出力装置。
An input data voice output device that operates in a computer system including an input control unit that notifies an application program of data input from an input device as input data,
A notification data monitoring unit that monitors a message queue in which input data and data transmitted by a process are registered, and extracts input data representing character code input from input data notified to the application program from the input control unit When,
An input data audio output device comprising: an audio output unit that outputs audio data associated with the data extracted by the notification data monitoring unit.
入力装置から入力されたデータを入力データとしてアプリケーションプログラムに通知する入力制御部を備えた計算機システムにおいて動作する入力データ音声出力プログラムを格納したコンピュータ読取可能な記録媒体であって、
入力データ及びプロセスの発信するデータが登録されているメッセージキューを監視し、前記入力制御部からアプリケーションプログラムに通知される入力データのうち、文字コードの入力を表す入力データを抽出する通知データ監視部と、
通知データ監視部により抽出されたデータに関連付けられている音声データを音声出力する音声出力部として機能させるための備えるプログラムを格納したコンピュータ読み取り可能な記録媒体。
A computer-readable recording medium storing an input data voice output program that operates in a computer system having an input control unit that notifies an application program of data input from an input device as input data,
A notification data monitoring unit that monitors a message queue in which input data and data transmitted by a process are registered, and extracts input data representing character code input from input data notified to the application program from the input control unit When,
A computer-readable recording medium storing a program for causing audio data associated with data extracted by a notification data monitoring unit to function as an audio output unit that outputs the audio.
JP18944297A 1996-07-15 1997-07-15 Input data audio output device Expired - Fee Related JP4439599B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18944297A JP4439599B2 (en) 1996-07-15 1997-07-15 Input data audio output device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP8-184708 1996-07-15
JP18470896 1996-07-15
JP18944297A JP4439599B2 (en) 1996-07-15 1997-07-15 Input data audio output device

Publications (2)

Publication Number Publication Date
JPH1083276A JPH1083276A (en) 1998-03-31
JP4439599B2 true JP4439599B2 (en) 2010-03-24

Family

ID=26502646

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18944297A Expired - Fee Related JP4439599B2 (en) 1996-07-15 1997-07-15 Input data audio output device

Country Status (1)

Country Link
JP (1) JP4439599B2 (en)

Also Published As

Publication number Publication date
JPH1083276A (en) 1998-03-31

Similar Documents

Publication Publication Date Title
TW468115B (en) Flexible hyperlink association system and method
JP2001092485A (en) Method for registering speech information, method for determining recognized character string, speech recognition device, recording medium in which software product for registering speech information is stored, and recording medium in which software product for determining recognized character string is stored
CN108388547A (en) Character string parsing method, apparatus, equipment and computer readable storage medium
US5946499A (en) Method and apparatus for processing text inputs from multiple input devices in a plurality of applications
KR0142163B1 (en) Character code converter
JP4439599B2 (en) Input data audio output device
JP2007172466A (en) Performance information recording device
JP2000122875A (en) Method and system for processing exception
JP3450598B2 (en) Technical term dictionary selection device
JP2624484B2 (en) Chinese input processing method
JP2001109740A (en) Device and method for preparing chinese document
JPH09114819A (en) Document preparing device
JP2001508895A (en) Computer system
JP2588210B2 (en) Help guide method
JPH0830421A (en) Method for executing command through dialogue
JP3988973B2 (en) Character string data compression apparatus, character string data compression method, and storage medium
JP3087699B2 (en) Standard information simple input system and standard information simple input method
JPS62282364A (en) Character string retrieval system
JP2610028B2 (en) Voiced and semi-voiced sound conversion processor
JPH0528156A (en) Document data converter
JP2864418B2 (en) Document processing device
JPH11306176A (en) Character processing device and method and medium storing control program of the device and method
JP2995975B2 (en) Document processing device
JPH11338859A (en) Name input device and program recording medium
JPH08212120A (en) File name managing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040223

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060427

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060509

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060707

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060905

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061005

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20070110

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20070713

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091113

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100106

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130115

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130115

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140115

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees