JP2001265369A - Voice processor - Google Patents

Voice processor

Info

Publication number
JP2001265369A
JP2001265369A JP2000077867A JP2000077867A JP2001265369A JP 2001265369 A JP2001265369 A JP 2001265369A JP 2000077867 A JP2000077867 A JP 2000077867A JP 2000077867 A JP2000077867 A JP 2000077867A JP 2001265369 A JP2001265369 A JP 2001265369A
Authority
JP
Japan
Prior art keywords
voice
output
sound
mode
storage means
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.)
Granted
Application number
JP2000077867A
Other languages
Japanese (ja)
Other versions
JP3485517B2 (en
Inventor
Junji Kuwabara
淳司 桑原
Manabu Hoshino
学 星野
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.)
Rhythm Watch Co Ltd
Original Assignee
Rhythm Watch Co 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 Rhythm Watch Co Ltd filed Critical Rhythm Watch Co Ltd
Priority to JP2000077867A priority Critical patent/JP3485517B2/en
Publication of JP2001265369A publication Critical patent/JP2001265369A/en
Application granted granted Critical
Publication of JP3485517B2 publication Critical patent/JP3485517B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To enhance idea elaboration rich in variation by creating a pseudo- conversion with a nearby arranged body. SOLUTION: When a reed switch 9 switches as a result of the nearby arrangement of an object to be detected, a control means 1 reads sounds or voices out of storage means 2 and 3 and outputs them from a sound output means 7. For example, a 1st storage means 3 which stores the sound inputted from a sound input means 3 in a rewritable state and a 2nd storage means 2 which previously stores plural registered sound output patterns showing combinations of voices and output intervals are provided. The control means 1 detecting the switching of the reed switch 9 optionally selects a voice output pattern from the 2nd storage means 2 according to a random number generated in the control means 1, reads the sounds or vices out of the 1st storage means 3 according to the selected pattern, and outputs them in order from the sound output means 7. They may be used in arbitrary combination with a synthesized voice or automatically registered voice together with a voice registered by a user.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、登録された音また
は音声を出力する機能を有し、その機能を用いて装置同
士の疑似会話を行う音声処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a voice processing apparatus having a function of outputting registered sounds or voices, and performing a pseudo conversation between the apparatuses using the function.

【0002】[0002]

【従来の技術】入力した音または音声を出力する機能
が、たとえば電子ペットなどの玩具、音声で目覚ましを
行う時計装置などに応用されている。電子ペットなどの
玩具では、この機能を利用して使用者(飼い主)から言
葉を習うようにしたものが多い。
2. Description of the Related Art The function of outputting input sound or voice has been applied to, for example, toys such as electronic pets, and clock devices that wake up by voice. Many toys such as electronic pets use this function to learn words from the user (owner).

【0003】[0003]

【発明が解決しようとする課題】ところが、この従来の
音声処理装置(たとえば、玩具など)では、実際の生物
とは異なり、習った言葉を使う機能が殆どなく、このた
め、どうしても機械相手であることが意識されてしま
い、電子ペット(疑似生物)としての趣向性に乏しいも
のであった。
However, unlike conventional creatures, this conventional voice processing device (for example, a toy) has almost no function of using the learned words, and therefore is inevitably a machine partner. He was conscious of this, and his interest as an electronic pet (simulated creature) was poor.

【0004】本発明は、このような実情に鑑みてなさ
れ、装置同士の疑似会話を成立させて、変化に富んで趣
向性が高い音声処理装置を提供することを目的とする。
[0004] The present invention has been made in view of such circumstances, and has as its object to provide a speech processing device that is rich in changes and has high interest by establishing a pseudo conversation between devices.

【0005】[0005]

【課題を解決するための手段】上述した従来技術の問題
点を解決し、上記目的を達成するために、本発明に係る
音声処理装置は、検出対象物が近接配置されたときにス
イッチングするリードスイッチと、音または音声が出力
される音声出力手段と、音または音声が記憶されている
記憶手段と、制御手段とを有し、上記制御手段は、上記
リードスイッチのスイッチング動作による検出信号の変
化に基づいて、上記音声出力手段および上記記憶手段を
制御して、上記記憶手段内に記憶されている音または音
声を読み出し、上記音声出力手段から出力させる。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems of the prior art and to achieve the above object, a voice processing apparatus according to the present invention comprises a lead for switching when a detection target is placed in close proximity. A switch, sound output means for outputting sound or sound, storage means for storing sound or sound, and control means, wherein the control means changes a detection signal due to a switching operation of the reed switch. And controlling the voice output means and the storage means to read out the sound or voice stored in the storage means and to output the sound or voice from the voice output means.

【0006】たとえば、音声が入力される音声入力手段
と、乱数を生成する乱数生成手段とをさらに有し、上記
記憶手段は、上記音声入力手段から入力された音声が書
き換え可能に記憶される第1記憶手段と、上記音声の組
合せおよび出力間隔を示す音声出力パターンが複数予め
記憶された第2記憶手段とを含み、上記制御手段は、上
記リードスイッチのスイッチングを上記検出信号により
検知したときは、上記乱数生成手段により生成された乱
数に基づいて上記第2記憶手段内の上記複数の音声出力
パターンから任意にパターンを選出し、選出したパター
ンに従って、上記音声を上記第1記憶手段から読み出し
上記音声出力手段から出力させる。あるいは、音声が入
力される音声入力手段と、乱数を生成する乱数生成手段
とをさらに有し、上記記憶手段は、上記音声入力手段か
ら入力された複数の音声が書き換え可能に記憶される第
1記憶手段と、複数の声または音声、当該声または音声
の組合せおよび出力間隔を示す第2音声出力パターンお
よび上記第1記憶手段内の音声の組合せおよび出力間隔
を示す第1音声出力パターンが予め記憶された第2記憶
手段とを含み、上記制御手段は、上記リードスイッチの
スイッチングを上記検出信号により検知したときは、上
記乱数生成手段により生成された乱数に基づいて上記第
2記憶手段内の上記第1,第2音声出力パターンから任
意にパターンを選出し、選出したパターンに従って、上
記声または音声を上記第1または第2記憶手段から読み
出し、上記音声出力手段から順次出力させる。
For example, the apparatus further includes voice input means for inputting voice and random number generation means for generating a random number, wherein the storage means stores the voice input from the voice input means in a rewritable manner. 1 storage means, and a second storage means in which a plurality of voice output patterns indicating combinations of voices and output intervals are stored in advance, wherein the control means detects switching of the reed switch by the detection signal. Arbitrarily selecting a pattern from the plurality of audio output patterns in the second storage means based on the random number generated by the random number generation means, reading the audio from the first storage means in accordance with the selected pattern, Output from the audio output means. Alternatively, the apparatus further includes voice input means for inputting voice and random number generation means for generating a random number, wherein the storage means stores a plurality of voices input from the voice input means in a rewritable manner. A storage means and a plurality of voices or voices, a second voice output pattern indicating the combination and output interval of the voices or voices, and a first voice output pattern indicating the voice combination and the output interval in the first storage means are stored in advance. The second storage means, when the switching of the reed switch is detected by the detection signal, based on a random number generated by the random number generation means. A pattern is arbitrarily selected from the first and second voice output patterns, and the voice or voice is read from the first or second storage means according to the selected pattern. Out, and sequentially outputted from the audio output means.

【0007】また、音声が入力される音声入力手段と、
乱数を生成する乱数生成手段とをさらに有し、上記制御
手段は、上記リードスイッチがスイッチングし上記検出
対象物が近接配置されている期間において、上記乱数生
成手段から生成された乱数が所定値を示すときは、上記
音声入力手段から入力される音声を取得して上記記憶手
段の自動登録音声の記憶領域に保持する。この場合、上
記記憶手段は、上記自動取込音声が書き換え可能に記憶
される第1記憶手段と、上記自動登録音声の組合せおよ
び出力間隔を示す第3音声出力パターンが予め記憶され
た第2記憶手段とを含み、上記制御手段は、上記検出対
象物が近接配置されているが上記音声入力装置から音声
が入力されなくなったことを検知したときは、上記第2
記憶手段内の第3音声出力パターンに従って、上記第1
記憶手段に保持していた自動登録音声を読み出し、上記
音声出力手段から出力させる。
Further, voice input means for inputting voice,
Random number generation means for generating a random number, wherein the control means, during a period in which the reed switch is switched and the detection target is arranged in proximity, the random number generated from the random number generation means has a predetermined value. When indicated, the voice input from the voice input means is acquired and stored in the storage area of the automatic registration voice in the storage means. In this case, the storage means includes a first storage means in which the automatically fetched voice is rewritably stored, and a second storage means, in which a third voice output pattern indicating a combination and an output interval of the automatically registered voice is stored in advance. The control means, when detecting that the object to be detected is arranged close to the object but that sound is no longer input from the sound input device,
According to the third sound output pattern in the storage means, the first
The automatic registration voice stored in the storage means is read out and output from the voice output means.

【0008】上記第1または第2記憶手段に、主語とな
る名詞を表す主語音声が予め登録された領域を有し、上
記制御手段は、上記乱数生成手段により生成された乱数
が所定値を示すときは、上記記憶手段から上記主語音声
を読み出して、当該主語音声を上記パターンに基づいて
出力すべき各音声の前に間欠的に挿入しながら上記音声
出力手段からの音声出力を実行する。
The first or second storage means has an area in which a subject voice representing a noun serving as a subject is registered in advance, and the control means indicates that a random number generated by the random number generation means indicates a predetermined value. At this time, the subject voice is read out from the storage means, and the subject voice is intermittently inserted before each voice to be output based on the pattern, and the voice output from the voice output means is executed.

【0009】このような構成の音声処理装置によれば、
検出対象物、たとえば同様の構成の他の音声処理装置と
向き合わせるだけで、リードスイッチがスイッチングし
て検出信号の変換が制御回路により検知されると、自動
的に音または音声が記憶手段から読み出され、音声出力
手段から出力される。このときの音または音声の配列、
間隔は、第2記憶手段に格納された第1〜第3の音声出
力パターンに基づいて決まる。この第1〜第3の音声出
力パターンに種々の疑似会話に似せるための仕組みが施
されている。たとえば、2つの装置間で音声出力タイミ
ングをとったり、相手が発声した音声をそのままオウム
返ししたり、主語(ペット名または飼い主名)と述語
(登録ワード)が関連づけられている。したがって、本
発明の音声処理装置と検出対象物(たとえば、他の装
置)が、恰も勝手に会話をしているような感覚が喚起さ
れる。
According to the audio processing apparatus having the above configuration,
When the reed switch is switched and the conversion of the detection signal is detected by the control circuit simply by facing the object to be detected, for example, another voice processing device of the same configuration, the sound or voice is automatically read from the storage means. And output from the audio output means. The arrangement of the sound or voice at this time,
The interval is determined based on the first to third audio output patterns stored in the second storage means. The first to third audio output patterns are provided with a mechanism for imitating various pseudo conversations. For example, the audio output timing is set between two devices, the voice uttered by the other party is returned as it is, and the subject (pet name or owner's name) is associated with a predicate (registered word). Therefore, a sensation as if the voice processing device of the present invention and the detection target (for example, another device) are talking on their own will be evoked.

【0010】[0010]

【発明の実施の形態】以下、本発明の音声処理装置の実
施形態を、本発明を電子ペット玩具に適用した場合を例
に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of a voice processing apparatus according to the present invention will be described with reference to an example in which the present invention is applied to an electronic pet toy.

【0011】図1は、本発明の音声処理装置の実施形態
に係る玩具の外観を示す図である。図1においてM1〜
M8は擬似生物をかたどった玩具の体の各部を示してお
り、M1は頭部ボタンを、M2およびM3は耳を、M4
は右手を、M5は左手を、M6は右足を、M7は左足
を、M8は本体をそれぞれ示している。
FIG. 1 is a view showing the appearance of a toy according to an embodiment of the voice processing device of the present invention. In FIG.
M8 indicates each part of the body of the toy in the form of a simulated creature, M1 indicates a head button, M2 and M3 indicate ears, and M4 indicates an ear.
Indicates a right hand, M5 indicates a left hand, M6 indicates a right foot, M7 indicates a left foot, and M8 indicates a main body.

【0012】頭部ボタンM1は本発明における起動およ
び就寝を制御するボタンであり、内部に後述する頭部ス
イッチを内蔵させている。使用者が頭部ボタンM1を押
し下げることによって、後述する頭部スイッチをONに
させることができる。耳M2およびM3は、内部に後述
するマイク(音声入力手段)を内蔵させており、玩具に
認識される音声はここにから玩具に取り込まれる。右手
M4は、内部に後述する磁石を内蔵させており、左手M
5は、内部に後述するリードスイッチを内蔵させてい
る。左手に磁石が接近してリードスイッチが導通する
と、後述するコミュニケーションスイッチがONにされ
る。また右手M4および左手M5は矢印aおよび矢印b
の方向へ上下に動かすことができ、右手M4および左手
M5の上げ下ろし動作に応じて後述するアラームスイッ
チがONにされる。右足M6および左足M7は本体M8
の側面に配設されて玩具が水平面上に直立できるように
本体M8を支持している。本体M8は玩具を動作させる
ための電池や、後述する時計動作機構、スピーカー、制
御回路等を含む基板を内蔵している。
The head button M1 is a button for controlling activation and sleeping in the present invention, and incorporates a head switch described later inside. When the user depresses the head button M1, a head switch described later can be turned on. The ears M2 and M3 have a built-in microphone (voice input means) described later, and the voice recognized by the toy is taken into the toy from here. The right hand M4 incorporates a magnet described later inside, and the left hand M4
Reference numeral 5 has a built-in reed switch described below. When the magnet approaches the left hand and the reed switch conducts, the communication switch described later is turned on. The right hand M4 and the left hand M5 are arrows a and b.
And an alarm switch described later is turned on in response to the raising / lowering operation of the right hand M4 and the left hand M5. Right foot M6 and left foot M7 are main body M8
And supports the main body M8 such that the toy can stand upright on a horizontal plane. The main body M8 includes a battery for operating the toy, and a board including a clock operation mechanism, a speaker, a control circuit, and the like to be described later.

【0013】図2は、本発明の音声処理装置の実施形態
に係る玩具の構成を示す図である。図2において、1は
制御回路(登録手段)を、2はROM(通知音記憶手
段)を、3はFLASH ROM(記憶手段および一時
記憶手段)を、4はマイクを、5は音程変換回路を、6
は音声増幅回路を、7はスピーカ(音声出力手段)を、
8は頭部スイッチを、9はコミュニケーションスイッチ
を、10はアラームスイッチを、11はリセットスイッ
チを、12は時計動作機構をそれぞれ示している。
FIG. 2 is a diagram showing a configuration of a toy according to an embodiment of the voice processing device of the present invention. In FIG. 2, 1 is a control circuit (registering means), 2 is a ROM (notification sound storage means), 3 is a FLASH ROM (storage means and temporary storage means), 4 is a microphone, and 5 is a pitch conversion circuit. , 6
Is an audio amplifier circuit, 7 is a speaker (audio output means),
Reference numeral 8 denotes a head switch, 9 denotes a communication switch, 10 denotes an alarm switch, 11 denotes a reset switch, and 12 denotes a clock operating mechanism.

【0014】制御回路1は、マイク4から出力されたア
ナログの音声信号をデジタルの音声データに変換してF
LASH ROM3に記録させるとともに、ROM2お
よびFLASH ROM3に記録された音声データをア
ナログの音声信号S3に変換して音程変換回路5に出力
する。また、制御信号S4によって音程変換回路の出力
する音声信号の音程を制御する。また、時計動作機構1
2による制御信号S1によって後述するアラームモード
の警報動作が開始され、パルス信号S2によって時間の
計測が行われる。さらに、頭部スイッチ8、コミュニケ
ーションスイッチ9、アラームスイッチ10、リセット
スイッチ11による各制御信号に応じて音声の記録や音
声の出力を行う。制御回路1の動作は、ROM2から読
み出されるプログラムに基づいて実行される。
The control circuit 1 converts an analog audio signal output from the microphone 4 into digital audio data and
The audio data recorded on the ROM 2 and the FLASH ROM 3 are converted into an analog audio signal S 3 and output to the pitch conversion circuit 5. Further, the pitch of the audio signal output from the pitch conversion circuit is controlled by the control signal S4. Clock operation mechanism 1
The alarm operation in the alarm mode, which will be described later, is started by the control signal S1 by the control signal 2 and the time is measured by the pulse signal S2. In addition, voice recording and voice output are performed in accordance with control signals from the head switch 8, the communication switch 9, the alarm switch 10, and the reset switch 11. The operation of the control circuit 1 is executed based on a program read from the ROM 2.

【0015】ROM2は、玩具に発声させる各音声デー
タおよび制御回路1のプログラムがデータとして記録さ
れており、制御回路1によって指定されたアドレスのデ
ータを制御回路1に出力する。FLASH ROM3
は、制御回路1から出力された音声データを含む各種の
データを制御回路の指定する所定のアドレスに記録する
とともに、制御回路1の指定する所定のアドレスのデー
タを制御回路1に出力する。マイク4は音声信号を制御
回路1に出力する。音程変換回路5は、制御回路1の出
力する音声信号S3の音程を制御信号S3に基づいて変
換した信号を音声増幅回路6に出力する。音声増幅回路
6は、音程変換回路5の出力する信号を増幅して、スピ
ーカ7に出力する。スピーカ7は、音声増幅回路6の出
力する音声信号を音声に変換して出力する。頭部スイッ
チ8、コミュニケーションスイッチ9、アラームスイッ
チ10は、いずれも後述する玩具の動作モードを制御す
る信号を制御回路1に出力する。リセットスイッチ11
は、玩具に記憶させた音声や玩具の動作を制御する各パ
ラメータの値をすべてリセットし、玩具の動作モードを
初期状態に設定する。時計動作機構は、アラーム動作の
開始と停止を制御する信号S1を制御回路1に出力する
とともに、一定の周期のパルス信号S2を時間計測用の
パルス信号として制御回路1に出力している。
The ROM 2 stores voice data to be uttered by the toy and a program of the control circuit 1 as data, and outputs data at an address designated by the control circuit 1 to the control circuit 1. FLASH ROM3
Records various data including audio data output from the control circuit 1 at a predetermined address specified by the control circuit, and outputs data at a predetermined address specified by the control circuit 1 to the control circuit 1. The microphone 4 outputs an audio signal to the control circuit 1. The pitch conversion circuit 5 outputs a signal obtained by converting the pitch of the audio signal S3 output from the control circuit 1 based on the control signal S3 to the audio amplification circuit 6. The audio amplification circuit 6 amplifies the signal output from the pitch conversion circuit 5 and outputs the amplified signal to the speaker 7. The speaker 7 converts an audio signal output from the audio amplification circuit 6 into audio and outputs the audio. The head switch 8, the communication switch 9, and the alarm switch 10 all output a signal for controlling an operation mode of a toy described later to the control circuit 1. Reset switch 11
Resets all the voices stored in the toy and the values of each parameter for controlling the operation of the toy, and sets the operation mode of the toy to an initial state. The clock operation mechanism outputs a signal S1 for controlling start and stop of the alarm operation to the control circuit 1, and outputs a pulse signal S2 having a constant cycle to the control circuit 1 as a pulse signal for time measurement.

【0016】次に、上述した構成を有する玩具の動作を
説明する。
Next, the operation of the toy having the above configuration will be described.

【0017】図3は、本発明の実施形態に係る玩具の初
回起動時の動作に係る動作モードを示す図である。図3
において、M0は初起動モードを、Mは通常モードをそ
れぞれ示している。また、I0〜I2は各モードにおけ
るモードの遷移をそれぞれ示している。
FIG. 3 is a diagram showing an operation mode related to the operation at the time of the first activation of the toy according to the embodiment of the present invention. FIG.
In the figure, M0 indicates an initial startup mode, and M indicates a normal mode. I0 to I2 indicate the mode transition in each mode.

【0018】初起動モードM0は、初めて電池が挿入さ
れた状態もしくはリセットスイッチ11がONされた状
態における動作モードである。この初起動モードでは、
玩具自身の名前(以下、ペット名という)および玩具の
使用者の名前(以下、飼い主名という)を、玩具に登録
させる動作が実行される。通常モードMは、後述する玩
具の通常の動作が行なわれるモードである。
The initial startup mode M0 is an operation mode in a state where a battery is inserted for the first time or a state where the reset switch 11 is turned on. In this first boot mode,
The operation of registering the name of the toy itself (hereinafter referred to as a pet name) and the name of the user of the toy (hereinafter referred to as an owner name) to the toy is performed. The normal mode M is a mode in which a normal operation of the toy described later is performed.

【0019】玩具に初めて電池が挿入されたとき、玩具
の動作状態は初起動モードM0になる。本モードの初期
では、後述するパラメータは全て初期状態になってお
り、また、後述する登録ワードも全て消去されている。
本モードにおいて上述したペット名および飼い主名を玩
具に登録させる処理が行なわれ、この登録が完了したと
き、動作モードは遷移I2により通常モードMに移行さ
れる。モードが通常モードMに移行すると、後述する通
常モードの動作が実行される。通常モードMにおいてリ
セットスイッチ11の状態は常に監視されており、この
リセットスイッチ11がONされると、動作モードは遷
移I1によって直ちに初起動モードM0に移行される。
このとき、後述する各パラメータや登録ワードは全て失
われる。なお、遷移I0は電池の交換等による内部回路
への電源供給の一時的な停止によるモードの遷移を表し
ている。通常モードMにおいて電池の交換等により電源
供給が停止されても、再び電源の供給が開始された場
合、動作モードは通常モードMのままで変わらない。す
なわち、後述するパラメータや登録ワードはFLASH
ROM3に保持される。初起動モードM0において
も、遷移I0によるモードの移行は発生しない。
When a battery is inserted into a toy for the first time, the operating state of the toy is the initial activation mode M0. At the beginning of this mode, all parameters described later are in the initial state, and all registered words described later are also deleted.
In this mode, the process of registering the pet name and the owner name in the toy is performed. When the registration is completed, the operation mode is shifted to the normal mode M by the transition I2. When the mode shifts to the normal mode M, the operation of the normal mode described later is executed. In the normal mode M, the state of the reset switch 11 is constantly monitored, and when the reset switch 11 is turned on, the operation mode is immediately shifted to the initial startup mode M0 by the transition I1.
At this time, all parameters and registered words described later are lost. The transition I0 indicates a mode transition due to a temporary stop of power supply to the internal circuit due to replacement of a battery or the like. Even if the power supply is stopped in the normal mode M due to battery replacement or the like, if the power supply is started again, the operation mode remains unchanged in the normal mode M. That is, parameters and registration words described later are FLASH
It is stored in the ROM 3. Even in the first activation mode M0, the mode transition by the transition I0 does not occur.

【0020】図4は、通常モードMにおける動作モード
の詳細を示した図である。図4において、M11は起床
モードを、M12は就寝モードを、M13はアラームモ
ードを、M14はコミュニケーションモードをそれぞれ
示している。
FIG. 4 is a diagram showing details of the operation mode in the normal mode M. In FIG. 4, M11 indicates a wake-up mode, M12 indicates a sleeping mode, M13 indicates an alarm mode, and M14 indicates a communication mode.

【0021】起床モードM11は、会話や言葉の学習を
行なう音声認識処理や、記憶した言葉をランダムに発言
するランダム発言処理、マイク4に入力された音を自動
的に記憶する自動音声登録処理などの後述する処理を行
なうモードである。
The wake-up mode M11 includes voice recognition processing for learning conversation and words, random utterance processing for randomly uttering stored words, and automatic voice registration processing for automatically storing sounds input to the microphone 4. Is a mode for performing the processing described later.

【0022】就寝モードM12は、起床モードM11に
おける会話など動作処理を全て停止させたモードであ
る。
The sleeping mode M12 is a mode in which all operation processes such as conversation in the wake-up mode M11 are stopped.

【0023】アラームモードM13は、使用者があらか
じめ設定した所定の時刻になったときに、登録されてい
る言葉等をアラームとして発声することにより、使用者
に設定時刻がきたことを知らせる音声アラームの動作を
行なうモードである。使用者は、玩具がアラームの音声
を発っした後、玩具の記憶している言葉を玩具のマイク
4に向かって話し掛けて言葉を認識させることにより、
玩具に触れることなく時報のアラームを一時的停止させ
ることができる。
The alarm mode M13 is a voice alarm for notifying the user of the set time by uttering a registered word or the like as an alarm when a predetermined time set in advance by the user is reached. This is the mode in which the operation is performed. After the toy emits the sound of the alarm, the user speaks the words stored in the toy toward the microphone 4 of the toy to recognize the words,
The alarm of the time signal can be temporarily stopped without touching the toy.

【0024】コミュニケーションモードM14は、本玩
具同士を近接させた状態で本玩具が記憶している言葉を
互いに発声させるとともに、発声されている音を記憶さ
せるモードである。このような動作によって、玩具同士
があたかも自律的にコミュニケーションを図っているよ
うな印象を使用者に与える。図5は、コミニュケーショ
ンモードM14における玩具の配置を示す俯瞰図であ
る。玩具の左手M5および右手M4の先端には、それぞ
れリードスイッチ91および磁石92が内蔵されてい
る。一方の玩具のリードスイッチ91に他方の玩具の磁
石92が近接してリードスイッチ91が導通しコミニュ
ケーションスイッチ9がONされると、動作モードがコ
ミュニケーションモードM14に移行する。
The communication mode M14 is a mode in which the words stored in the toy are uttered while the toys are brought close to each other, and the sound being uttered is stored. Such an operation gives the user an impression as if the toys are autonomously communicating. FIG. 5 is an overhead view showing the arrangement of the toys in the communication mode M14. At the tips of the left hand M5 and the right hand M4 of the toy, a reed switch 91 and a magnet 92 are respectively built. When the magnet 92 of the other toy approaches the reed switch 91 of one toy and the reed switch 91 conducts and the communication switch 9 is turned on, the operation mode shifts to the communication mode M14.

【0025】次に、上述した通常モードMにおける各モ
ード間の遷移について説明する。
Next, the transition between the respective modes in the normal mode M will be described.

【0026】初起動モードM0における上述した動作が
完了すると、動作モードは遷移I2で起床モードM11
に移行する。起床モードM0への移行とともに計時が開
始し、動作モードが起床モードにある経過時間が計時さ
れ、経過時間が例えば10分を超えると、遷移I3で動
作モードは就寝モードM12に移行する。
When the above-described operation in the first activation mode M0 is completed, the operation mode is changed to the wake-up mode M11 in transition I2.
Move to Timing starts with the transition to the wake-up mode M0, and the elapsed time when the operation mode is in the wake-up mode is measured. If the elapsed time exceeds, for example, 10 minutes, the operation mode shifts to the sleep mode M12 in transition I3.

【0027】就寝モードM12において、玩具の頭部ボ
タンM1が押されて頭部ボタンM1に内蔵されている頭
部スイッチ8がONされると、動作モードは遷移I4で
起床モードM11に移行する。起床モードM11におい
て頭部スイッチ8がONされた場合、玩具が何らかの発
声を行っていない状態であれば、動作モードは変化しな
い。この場合、上述した起床モードM11の経過時間が
リセットされて、起床モードM11から就寝モードM1
2に移行するまでの時間が10分間延長される。一方、
起床モードM11において、玩具が何らかの発声を行っ
ている状態で頭部スイッチ8がONされた場合には、動
作モードは強制的に就寝モードM12へ移行される。
In the sleep mode M12, when the head button M1 of the toy is pressed and the head switch 8 built in the head button M1 is turned on, the operation mode shifts to the wake-up mode M11 at transition I4. When the head switch 8 is turned on in the wake-up mode M11, the operation mode does not change if the toy does not emit any sound. In this case, the elapsed time of the wake-up mode M11 is reset, and the wake-up mode M11 is changed to the sleep mode M1.
The time to move to 2 is extended by 10 minutes. on the other hand,
In the wake-up mode M11, when the head switch 8 is turned on in a state where the toy is making some sound, the operation mode is forcibly shifted to the sleep mode M12.

【0028】左手M5が図1の矢印aの方向に回転され
てアラームスイッチ10がONされると、起床モードM
11、就寝モードM12およびコミュニケーションモー
ドM14から遷移I5でアラームモードM13に移行す
る。アラームモードM13は、通常モードMにおける他
の3つのモードの中で最も優先されるモードである。右
手M4または左手M5が矢印aと反対の方向に回転され
てアラームスイッチ10がOFFされると、遷移I6で
動作モードは就寝モードM12に移行する。
When the left hand M5 is rotated in the direction of arrow a in FIG. 1 and the alarm switch 10 is turned on, the wake-up mode M
11. A transition from the sleep mode M12 and the communication mode M14 to the alarm mode M13 is made in transition I5. The alarm mode M13 is a mode having the highest priority among the other three modes in the normal mode M. When the right hand M4 or the left hand M5 is rotated in the direction opposite to the arrow a and the alarm switch 10 is turned off, the operation mode shifts to the sleep mode M12 at transition I6.

【0029】リードスイッチ91が導通しコミニュケー
ションスイッチ9がONされると、起床モードM11お
よび就寝モードM12は遷移I7でコミュニケーション
モードM14に移行する。アラームスイッチ10とコミ
ュニケーションスイッチ9が同時にONされている場合
は、アラームスイッチ10によるアラームモードM13
が優先されるため、コミュニケーションモードM14に
は移行しない。
When the reed switch 91 is turned on and the communication switch 9 is turned on, the wake-up mode M11 and the sleeping mode M12 shift to the communication mode M14 at the transition I7. When the alarm switch 10 and the communication switch 9 are simultaneously turned on, the alarm mode M13 by the alarm switch 10 is set.
Does not shift to the communication mode M14.

【0030】以上説明した初起動モードM0および通常
モードMに係る動作モードとは独立に、後述する信頼パ
ラメータに係る3つの動作モードがある。図6は、信頼
パラメータに係る動作モードを示す図である。図6にお
いて、M21は健康モードを、M22は病気モードを、
M23は仮死モードをそれぞれ示している。
There are three operation modes related to reliability parameters described later, independently of the operation modes related to the initial start-up mode M0 and the normal mode M described above. FIG. 6 is a diagram illustrating an operation mode according to the reliability parameter. In FIG. 6, M21 is a health mode, M22 is a disease mode,
M23 indicates the asphyxia mode, respectively.

【0031】初回の電池挿入後およびリセットスイッチ
11がONされた後、信頼パラメータに係るモードは健
康モードM21になっている。後に述べる条件によって
信頼パラメータの値が変動し健康モードM21と病気モ
ードM22の境界を定めるしきい値を超えると、遷移I
9で健康モードM21から病気モードM22に移行す
る。病気モードM22においては、健康モードM21で
処理されていた一部の動作が行なわれなくなったり、玩
具が病気になっているような声を発するなどして、使用
者にあたかも玩具が病気になっているような印象を起こ
させる。玩具に言葉を認識させる等の行為を続けること
によって、玩具の使用者が信頼パラメータを所定のしき
い値内に回復させれば、遷移I11で病気モードM22
から健康モードM21に移行させることができる。逆
に、信頼パラメータが変動して病気モードM22と仮死
モードM23の境界を定めるしきい値を超えると、遷移
I10で病気モードM22から仮死モードM23に移行
する。仮死モードM23においては健康モードM22で
なされていたほとんどの処理が行なわれなくなり、記憶
されていた言葉も全て消去されるほか、後述するパラメ
ータが更新されなくなる。リセットスイッチ11をON
させると、信頼パラメータに係るモードは病気モードM
22および仮死モードM23から遷移I1で健康モード
M21に移行する。
After the first battery insertion and after the reset switch 11 is turned on, the mode relating to the reliability parameter is the health mode M21. When the value of the confidence parameter fluctuates due to a condition described later and exceeds a threshold value that defines the boundary between the health mode M21 and the disease mode M22, the transition I
At 9, the mode is shifted from the health mode M21 to the disease mode M22. In the sick mode M22, a part of the operation that was processed in the health mode M21 is not performed, or the toy utters a voice as if the toy is sick. Make the impression that you are. If the user of the toy recovers the confidence parameter within a predetermined threshold value by continuing the action such as making the toy recognize words, the illness mode M22 is made in transition I11.
To the health mode M21. Conversely, when the confidence parameter fluctuates and exceeds a threshold value that defines the boundary between the illness mode M22 and the asphyxia mode M23, the state shifts from the sickness mode M22 to the asphyxia mode M23 in transition I10. In the asphyxia mode M23, most of the processing performed in the health mode M22 is not performed, all stored words are deleted, and parameters described later are not updated. Turn on reset switch 11
Then, the mode relating to the confidence parameter is sick mode M
22 and a transition to the health mode M21 from the asphyxia mode M23 in transition I1.

【0032】次に、上述した各動作モードにおける具体
的な動作を説明する。
Next, a specific operation in each of the above-described operation modes will be described.

【0033】図7および図8は、初起動モードM0にお
ける処理を説明するフローチャート図である。図7およ
び図8において、Pa1〜Pa54、PbおよびPcは
ステップを示している。また、図7のと図8のはス
テップの接続関係を示している。
FIGS. 7 and 8 are flowcharts for explaining the processing in the initial start mode M0. 7 and 8, Pa1 to Pa54, Pb and Pc indicate steps. FIG. 7 and FIG. 8 show the connection relation of the steps.

【0034】初起動モードM0における処理では、まず
マイク4から入力された音声データがペット名として登
録される。その場合、誤った音声が登録されてしまわな
いように、使用者に2回おなじ音声を入力させることに
よって登録させたい音声を確認させ、2回の音声データ
の特徴が一致した場合にこれをペット名として登録させ
ている。ペット名の登録に続けて、飼い主名の登録も行
なわれる。この登録手順も、ペット名の登録と同様であ
り、使用者に2回おなじ音声を入力させて、2回の音声
データの特徴が一致した場合にこれを飼い主名として登
録させている。
In the process in the first activation mode M0, first, voice data input from the microphone 4 is registered as a pet name. In that case, to prevent the wrong voice from being registered, the user is asked to input the same voice twice to confirm the voice to be registered. If the characteristics of the voice data match twice, the pet is Registered as first names. Following the registration of the pet name, the owner's name is also registered. This registration procedure is similar to the registration of the pet name. The user is required to input the same voice twice, and when the characteristics of the voice data match twice, the user is registered as the owner name.

【0035】ステップPa1において、初起動モードM
0の処理が開始される。ステップPa2において、初期
起動モードの最初に玩具が音声を発する処理が実行され
る。このステップにおいてはまだ音声データが記録され
ていないので、ROM2にあらかじめ記録されている音
声データから音声が生成される。具体的には、ROM2
に記録されている音声、例えば「ヒヒャハハ」といった
音声のデジタル化されたデータが制御回路1の要求に応
じてROM2の所定のアドレスから制御回路1に出力さ
れる。制御回路1に出力された音声データはD/A変換
を施されてアナログの音声信号に変換され、信号S3と
して音程変換回路5に出力される。音程変換回路5に出
力された音声信号は、制御回路1の出力する信号S4に
応じて音程を変換され、音声増幅回路6により増幅され
てスピーカ7で音波に変換される。ステップPa2にお
いて玩具から所定の音声が発せられることにより、使用
者は玩具が動作状態にあることを認識できる。
In step Pa1, the initial start mode M
0 processing is started. In step Pa2, a process in which the toy emits sound is executed at the beginning of the initial startup mode. In this step, since the audio data has not been recorded yet, the audio is generated from the audio data recorded in the ROM 2 in advance. Specifically, ROM2
The digitized data of the voice recorded in the ROM 2, for example, "Hiyahaha" is output to the control circuit 1 from a predetermined address of the ROM 2 in response to a request from the control circuit 1. The audio data output to the control circuit 1 is subjected to D / A conversion, converted into an analog audio signal, and output to the pitch conversion circuit 5 as a signal S3. The sound signal output to the pitch conversion circuit 5 is converted in pitch according to the signal S4 output from the control circuit 1, amplified by the voice amplification circuit 6, and converted into sound waves by the speaker 7. By emitting a predetermined sound from the toy in step Pa2, the user can recognize that the toy is operating.

【0036】ステップPa3において、次に説明する待
ち時間パラメータがリセットされ、ステップPa4にお
いて、時計動作機構12から所定の時間間隔、例えば2
秒ごとに入力されるパルス信号S2に応じて、待ち時間
パラメータをインクリメントする割り込み処理が開始さ
れる。待ち時間パラメータの値はステップPa3におい
てリセットされているため、この値を参照することによ
り、ステップPa4からの経過時間を計ることができ
る。
At step Pa3, a waiting time parameter described below is reset. At step Pa4, a predetermined time interval, for example, 2
In response to the pulse signal S2 input every second, an interrupt process for incrementing the waiting time parameter is started. Since the value of the waiting time parameter has been reset in Step Pa3, the elapsed time from Step Pa4 can be measured by referring to this value.

【0037】ステップPa5においては、後述するステ
ップPa10において使用される整数kの値がリセット
されて0になる。
In step Pa5, the value of the integer k used in step Pa10 described later is reset to zero.

【0038】ステップPa6において、マイク4から入
力される音声の有無が制御回路1によって判断される。
具体的には、マイク4から入力された音声信号のレベル
が所定のしきい値より小さいとき音声信号が入力されて
いないと判断され、所定のしきい値より大きいとき音声
信号が入力されていると判断される。制御回路1におい
て音声信号が入力されていないと判断された場合、ステ
ップPa7に処理が移行される。ステップPa7では、
上述した待ち時間パラメータの値によって示されるステ
ップPa4からの経過時間と所定の時間、例えば10秒
間とが比較されて、経過時間が10秒間より短い場合、
ステップPa6に再び処理が戻されて、マイク4から入
力される音声の有無が検出される。10秒以内にステッ
プPa6において音声が検出された場合は、前記した待
ち時間パラメータをインクリメントする割り込み処理が
停止されてステップPa6からステップPa8に処理が
移行される。また、10秒以内にステップPa6におい
て音声が検出されなかった場合は、同様に待ち時間パラ
メータをインクリメントする割り込み処理が停止された
後、ステップPa7から後述するステップPa25に処
理が移行される。
In step Pa6, the control circuit 1 determines whether or not there is a voice input from the microphone 4.
Specifically, when the level of the audio signal input from the microphone 4 is smaller than a predetermined threshold, it is determined that the audio signal is not input, and when the level is higher than the predetermined threshold, the audio signal is input. Is determined. If it is determined in the control circuit 1 that no audio signal has been input, the process proceeds to step Pa7. In step Pa7,
The elapsed time from step Pa4 indicated by the value of the above-mentioned waiting time parameter is compared with a predetermined time, for example, 10 seconds, and when the elapsed time is shorter than 10 seconds,
The process returns to step Pa6 again, and the presence or absence of the voice input from the microphone 4 is detected. If a voice is detected in Step Pa6 within 10 seconds, the interrupt processing for incrementing the waiting time parameter is stopped, and the processing shifts from Step Pa6 to Step Pa8. If no voice is detected in Step Pa6 within 10 seconds, the interrupt process for incrementing the waiting time parameter is similarly stopped, and the process shifts from Step Pa7 to Step Pa25 described later.

【0039】ステップPa8では、ステップPa7で検
出されたアナログの音声信号が、制御回路1でA/D変
換を施されてデジタル化された音声データに変換され
る。この際、例えば、音声の大きさが制御回路1におい
て定められている上限のしきい値より大きい場合や、下
限のしきい値より小さい場合、さらには音声の長さが定
められた上限のしきい値より長い場合には、ステップP
a9に処理が移行されて、入力された音声のレベルが不
適当であることを知らせる音声が発せられる。具体的に
は、例えば「ブ〜」という音のデータがROM2から読
み出されてD/A変換され、音程変換回路5、音声増幅
回路6を経てスピーカー7より音声として発せられる。
In step Pa8, the analog audio signal detected in step Pa7 is subjected to A / D conversion by the control circuit 1 and converted into digitized audio data. At this time, for example, when the volume of the voice is larger than the upper threshold set in the control circuit 1, or smaller than the lower threshold, the voice length is set to the upper limit. If it is longer than the threshold, step P
The process shifts to a9, and a sound is issued to notify that the level of the input sound is inappropriate. More specifically, for example, data of the sound “B” is read from the ROM 2, D / A-converted, and transmitted as a sound from the speaker 7 through the pitch conversion circuit 5 and the sound amplification circuit 6.

【0040】次いで、ステップPa10において上述し
た整数kの値が1だけインクリメントされ、ステップP
a11でこの整数kと所定の整数の大小関係が判断され
る。整数kが所定の整数、例えば1と等しいか、または
1より小さい場合は、ステップPa6に戻って再び音声
の入力を待つ処理が実行され、整数kが1より大きい場
合は、後述するステップPa25に処理が移行される。
このように、ステップPa8で変換された音声のレベル
が不適当であった場合に、所定の回数だけ音声を再入力
させる機会を設けているので、使用者が誤った音声を入
力したときに同一の手順を繰り返す不便を軽減させてい
る。
Next, at step Pa10, the value of the integer k is incremented by one, and
At a11, the magnitude relationship between the integer k and a predetermined integer is determined. If the integer k is equal to or smaller than a predetermined integer, for example, 1, the process returns to step Pa6 to wait for the input of a voice again. If the integer k is larger than 1, the process returns to step Pa25 described later. Processing is shifted.
As described above, when the level of the sound converted in step Pa8 is inappropriate, the opportunity to re-input the sound a predetermined number of times is provided, so that when the user inputs an incorrect sound, The inconvenience of repeating the procedure is reduced.

【0041】ステップPa12では、ステップPa8で
取得された音声データを変数Vdに代入させている。こ
の音声データは後の処理で参照される。
At step Pa12, the voice data obtained at step Pa8 is substituted for the variable Vd. This audio data is referred to in later processing.

【0042】ステップPa13では、音声データが認識
されたことを使用者に通知する音声、例えば「ウン?」
という音声データがROM2から読み出されてD/A変
換され、音程変換回路5、音声増幅回路6を経てスピー
カー7より音声として発せられる。このように、入力さ
れた音声が玩具に認識された結果に応じて異なる音声
(上記の例では「ブ〜」および「ウン?」)が出力され
るため、使用者は玩具と対話するような感覚で玩具に音
声を登録させることができる。
In step Pa13, a voice notifying the user that the voice data has been recognized, for example, "un?"
Is read from the ROM 2 and D / A-converted. The sound data is transmitted as a sound from the speaker 7 through the pitch conversion circuit 5 and the sound amplification circuit 6. As described above, different voices (in the above example, “bu-” and “un?”) Are output according to the result of recognition of the input voice by the toy, so that the user interacts with the toy. Sound can be registered in the toy with a sense.

【0043】ステップPa14において、上述した待ち
時間パラメータが再びリセットされ、ステップPa15
において、時計動作機構12から所定の時間間隔ごとに
入力されるパルス信号S2に応じて、待ち時間パラメー
タをインクリメントする割り込み処理が開始される。ス
テップPa16においては、ステップPa21において
使用する整数kの値がリセットされて0になる。
At step Pa14, the above-mentioned waiting time parameter is reset again, and at step Pa15
In, an interrupt process for incrementing the waiting time parameter is started according to the pulse signal S2 input from the clock operating mechanism 12 at predetermined time intervals. In step Pa16, the value of the integer k used in step Pa21 is reset to zero.

【0044】ステップPa17において、マイク4から
入力される音声の有無が再び制御回路1によって判断さ
れ、音声信号が入力されていないと判断された場合、ス
テップPa18に処理が移行される。ステップPa18
では、上述した待ち時間パラメータの値によって示され
るステップPa15からの経過時間と所定の時間、例え
ば10秒間とが比較されて、経過時間が10秒間より短
い場合、ステップPa17に再び処理が戻されて、マイ
ク4から入力される音声の有無が検出される。10秒以
内にステップPa17において音声が検出された場合
は、前記した待ち時間パラメータをインクリメントする
割り込み処理が停止されてステップPa17からステッ
プPa19に処理が移行される。また、10秒以内にス
テップPa17において音声が検出されなかった場合
は、同様に待ち時間パラメータをインクリメントする割
り込み処理が停止された後、ステップPa18から後述
するステップPa25に処理が移行される。
In step Pa17, the control circuit 1 determines again whether or not there is a voice input from the microphone 4, and if it is determined that no voice signal has been input, the process proceeds to step Pa18. Step Pa18
Then, the elapsed time from step Pa15 indicated by the value of the waiting time parameter described above is compared with a predetermined time, for example, 10 seconds. If the elapsed time is shorter than 10 seconds, the process is returned to step Pa17 again. , The presence or absence of voice input from the microphone 4 is detected. If a voice is detected in Step Pa17 within 10 seconds, the interrupt process for incrementing the waiting time parameter is stopped, and the process proceeds from Step Pa17 to Step Pa19. If no voice is detected in step Pa17 within 10 seconds, the interrupt process for incrementing the waiting time parameter is similarly stopped, and the process proceeds from step Pa18 to step Pa25 described later.

【0045】ステップPa19では、ステップPa17
で検出されたアナログの音声信号が、制御回路1でA/
D変換を施されてデジタル化された音声データに変換さ
れる。上述したステップPa8と同様の条件で入力され
た音声が不適当と判断された場合は、ステップPa20
に処理が移行されて、入力された音声のレベルが不適当
であることを知らせる音声、例えば「ブ〜」という音声
データがROM2から読み出されてD/A変換され、音
程変換回路5、音声増幅回路6を経てスピーカー7より
音声として発せられる。次いで、ステップPa21にお
いて上述した整数kの値が1だけインクリメントされ、
ステップPa22でこの整数kと所定の整数の大小関係
が判断される。整数kが所定の整数、例えば1と等しい
か、または1より小さい場合は、ステップPa17に戻
って再び音声の入力を待つ処理が実行され、整数kが1
より大きい場合は、後述するステップPa25に処理が
移行される。ステップPa9〜Pa11と同様にして、
音声のレベルが不適当であった場合に所定の回数だけ音
声を再入力させる機会を設けているので、使用者の不便
が軽減させる。
In step Pa19, step Pa17
The analog audio signal detected by the control circuit 1
It is subjected to D conversion and converted to digitized audio data. If it is determined that the voice input under the same conditions as in step Pa8 described above is inappropriate, step Pa20
The processing is shifted to the step S3, and the voice that informs that the level of the input voice is inappropriate, for example, the voice data “B” is read out from the ROM 2 and D / A-converted. The sound is emitted as sound from the speaker 7 through the amplifier circuit 6. Next, in step Pa21, the value of the integer k is incremented by one,
In step Pa22, a magnitude relationship between the integer k and a predetermined integer is determined. If the integer k is equal to or smaller than a predetermined integer, for example, 1, the process returns to step Pa17 and waits for the input of a voice again.
If it is larger, the process proceeds to Step Pa25 described later. Similarly to steps Pa9 to Pa11,
Since an opportunity is provided to re-enter the sound a predetermined number of times when the sound level is inappropriate, the inconvenience of the user is reduced.

【0046】ステップPa23では、ステップPa12
で変数Vdに代入され音声データと、ステップPa19
で取得された音声データの特徴が制御回路1において比
較される。音声データの特徴は、例えば音声データをフ
ーリエ変換して得られた周波数スペクトルの振幅などを
用いて抽出され、所定の比較手順で比較される。変数V
dの音声データとステップPa19で取得された音声デ
ータの特徴が一致していると判断された場合は、ステッ
プPa24に処理が移行され、ステップPa19で取得
された音声データがペット名としてFLASH ROM
3の所定のアドレスに書き込まれる。逆に互いの音声デ
ータの特徴が一致しないと判断された場合は、上述した
ステップPa20に処理が移行され、ステップPa17
で再び音声を入力させる機会が使用者に与えられる。
In step Pa23, step Pa12
And the voice data substituted for the variable Vd at step Pa19
Are compared in the control circuit 1. The features of the audio data are extracted using, for example, the amplitude of a frequency spectrum obtained by performing Fourier transform on the audio data, and are compared by a predetermined comparison procedure. Variable V
If it is determined that the voice data of step d and the characteristics of the voice data acquired in step Pa19 match, the process proceeds to step Pa24, and the voice data acquired in step Pa19 is used as the pet name in the FLASH ROM.
3 is written to a predetermined address. Conversely, if it is determined that the characteristics of the audio data do not match each other, the process proceeds to step Pa20 described above and proceeds to step Pa17.
Is given to the user again.

【0047】ステップPa24でペット名が登録される
とステップPa28に処理が移行されて、使用者にペッ
ト名が登録されたことを通知する音声、例えばペット名
として登録された音声が発せられる。これにより、使用
者がペット名の登録に成功したことを知ることができる
他、登録させた音声を確認することができる。
When the pet name is registered in step Pa24, the process proceeds to step Pa28, and a sound for notifying the user that the pet name has been registered, for example, a sound registered as the pet name is issued. As a result, the user can know that the pet name has been successfully registered, and can confirm the registered voice.

【0048】この場合、FLASH ROM3に書き込
んだ音声データは使用者自身の発した音声のデータであ
るが、音程変換回路5の出力する音声信号は制御回路1
による信号S4によって音程を制御させることができる
ので、例えばインコのような愛らしい音声に変換させて
スピーカ7より音声を出力させることができる。これに
より、使用者自身の音声を聞かされる味気なさを免れる
ことができ、あたかも玩具が自らの音声を発しているよ
うな印象を使用者に与えることができるため、玩具を擬
似生物として扱う趣向性が高まる。
In this case, the voice data written in the FLASH ROM 3 is data of a voice uttered by the user himself, but the voice signal output from the pitch conversion circuit 5 is
Since the pitch can be controlled by the signal S4, the sound can be converted to an adorable sound such as a parakeet, and the sound can be output from the speaker 7. As a result, it is possible to avoid the unpleasantness of listening to the user's own voice, and to give the user the impression that the toy is emitting his own voice. Increase.

【0049】ステップPa25〜Pa27は、音声の入
力待ち時間が10秒を超えてしまった場合や、音が大き
すぎる等により音声データが不適当だった場合に他の処
理へランダムに移行させるためのステップである。ラン
ダムに移行させる手順は、上述したステップPa2〜P
a24によるペット名の登録手順および後述するランダ
ム発言処理Pb、自動音声登録処理Pcの3つである。
Steps Pa25 to Pa27 are used to randomly shift to another processing when the audio input waiting time exceeds 10 seconds or when the audio data is inappropriate due to the sound being too loud. Step. The procedure for shifting at random is based on steps Pa2 to P
a24: a pet name registration procedure, a random utterance process Pb described later, and an automatic voice registration process Pc.

【0050】ステップPa25では、0から2の整数が
ランダムに生成されて、変数mに代入される。ステップ
Pa26では、変数mに代入された数値と整数0との一
致を判断し、一致している場合、ステップPa2に処理
を戻して、再びペット名を登録させる処理が初めから実
行される。また、変数mと整数0が一致していない場合
はステップPa27に処理を移行させて、変数mと整数
1との一致が判断され、一致している場合には後述する
ランダム発言処理Pbに処理を移行させ、一致していな
い場合は後述する自動音声登録処理Pcに処理を移行さ
せる。このように、初起動モードにおいてペット名が登
録されないまま放置されている状態であっても、後述す
るランダム発言処理Pbや自動音声登録処理Pcなどの
処理がランダムに実行されるので、上述したような処理
によれば、ペット名が登録されないときにいつまでも登
録を催促し続けるような処理に比べて使用者が玩具に抱
く機械的な印象を低減させることができる。
At step Pa25, an integer from 0 to 2 is randomly generated and assigned to a variable m. In step Pa26, it is determined whether the numerical value assigned to the variable m matches the integer 0, and if they match, the process returns to step Pa2, and the process of registering the pet name again is executed from the beginning. If the variable m and the integer 0 do not match, the process proceeds to step Pa27, where it is determined that the variable m and the integer 1 match, and if they do match, the process proceeds to a random utterance process Pb to be described later. If not, the process proceeds to an automatic voice registration process Pc described later. As described above, even in a state where the pet name is left unregistered in the first activation mode, processes such as a random utterance process Pb and an automatic voice registration process Pc to be described later are randomly executed. According to such a process, the mechanical impression of the user on the toy can be reduced as compared with a process in which the pet name is not registered, and the registration is urged forever.

【0051】ここで、ランダム発言処理Pbおよび自動
音声登録処理Pcについて説明する。
Here, the random comment processing Pb and the automatic voice registration processing Pc will be described.

【0052】ランダム発言処理Pbにおいては、玩具の
ROM2に記録されているあらかじめ用意された音声デ
ータや、FLASH ROM3に記録されている使用者
に登録された音声データが制御回路1によってランダム
に読み出されて、音程変換回路5、音声増幅回路6を経
てスピーカ7より音声として発せられる。動作モードが
初起動モードにある場合は、まだ使用者の登録操作によ
ってFLASH ROM3に音声データが登録されてい
ないので、後述する自動音声登録処理Pcによって自動
的に登録された音声データや、ROM2に記録されてい
るあらかじめ用意された音声データが専ら出力される。
ランダム発言処理Pbによってランダムに選択される音
声データは、後述する気分パラメータや信頼パラメータ
によって種類が変化する。
In the random speech processing Pb, the control circuit 1 randomly reads out voice data prepared in advance stored in the ROM 2 of the toy and voice data registered in the FLASH ROM 3 by the user. Then, the sound is emitted as a sound from the speaker 7 through the pitch conversion circuit 5 and the sound amplification circuit 6. When the operation mode is the initial startup mode, since voice data has not yet been registered in the FLASH ROM 3 by a user's registration operation, the voice data automatically registered by the automatic voice registration process Pc to be described later, or the ROM 2 The recorded audio data prepared in advance is exclusively output.
The type of the voice data selected at random by the random utterance process Pb changes depending on a mood parameter and a reliability parameter described later.

【0053】自動音声登録処理Pcにおいては、マイク
4に入力された所定の長さ以内の音声が制御回路1にお
いて自動的に音声データに変換されて、FLASH R
OM3へ記録される。登録される音声データの数は所定
の最大数、例えば3つ以下に定められており、これを超
えて登録される場合は、自動音声登録処理Pcにおいて
音声データが記録される何れかの記録エリアに上書きし
て記録される。自動音声登録処理Pcにおいて登録され
た音声データは、上記のランダム発言処理Pbのほか、
後述する会話処理などで発声されるため、玩具が発声す
る音声の内容の意外性が増し、これにより玩具の機械的
な印象が低減して、擬似生物としての趣向性を高めるこ
とができる。
In the automatic voice registration process Pc, voices within a predetermined length inputted to the microphone 4 are automatically converted into voice data by the control circuit 1, and FLASH R
Recorded in OM3. The number of audio data to be registered is set to a predetermined maximum number, for example, three or less. If the number of audio data to be registered exceeds this, any one of the recording areas where audio data is recorded in the automatic audio registration process Pc. Is overwritten and recorded. The voice data registered in the automatic voice registration process Pc includes the above-mentioned random speech process Pb,
Since the utterance is generated in a conversation process to be described later, the unexpectedness of the content of the voice uttered by the toy increases, whereby the mechanical impression of the toy is reduced, and the taste of the toy as a simulated creature can be increased.

【0054】ペット名登録処理の過程で上述したランダ
ム発言処理Pbや自動音声登録処理Pcに移行するほ
か、他の異なる処理をいくつも設けてランダムに移行さ
せることができる。これにより、単一な処理を使用者に
強いることによって玩具を飽きさせるデメリットを低減
させることができる。
In the course of the pet name registration process, in addition to the above-mentioned random speech process Pb and the automatic voice registration process Pc, a number of other different processes can be provided and the process can be made randomly. This can reduce the disadvantage that the toy is bored by forcing the user to perform a single process.

【0055】次に、初起動モードM0においてペット名
登録が完了した後の処理について説明する。
Next, the processing after the completion of the pet name registration in the first activation mode M0 will be described.

【0056】ペット名を登録した後は、同様のステップ
によって今度は飼い主名を登録させる。具体的には、ス
テップPa29〜Pa49とステップPa3〜Pa23
ではそれぞれ同じ処理が行われる。
After the pet name is registered, the owner name is registered by the same steps. Specifically, steps Pa29 to Pa49 and steps Pa3 to Pa23
Then, the same processing is performed respectively.

【0057】ステップPa52では、0から2の整数が
ランダムに生成されて、変数mに代入される。ステップ
Pa53では、変数mに代入された数値と整数0との一
致を判断し、一致している場合、ステップPa28に処
理を戻して、ペット名を発声させた後再び飼い主名を登
録させる処理が初めから実行される。また、変数mと整
数0が一致していない場合はステップPa54に処理を
移行させて、変数mと整数1との一致が判断され、一致
している場合には上述したランダム発言処理Pbに処理
を移行させ、一致していない場合は上述した自動音声登
録処理Pcに処理を移行させる。ペット名の登録におけ
るステップPa25〜Pa27と同様の手順を経て、ラ
ンダム発言処理Pbや自動音声登録処理Pcなどの処理
がランダムに実行されるので、使用者が玩具に抱く機械
的な印象を低減させることができる。
In step Pa52, an integer from 0 to 2 is randomly generated and assigned to a variable m. In step Pa53, it is determined whether the numerical value assigned to the variable m is equal to the integer 0, and if they match, the process returns to step Pa28, in which the pet name is uttered and then the owner name is registered again. Executed from the beginning. If the variable m and the integer 0 do not match, the process proceeds to step Pa54, where it is determined that the variable m matches the integer 1, and if they do match, the process proceeds to the above-described random utterance process Pb. And if not, the process proceeds to the automatic voice registration process Pc described above. Through the same procedure as steps Pa25 to Pa27 in the registration of the pet name, processes such as the random utterance process Pb and the automatic voice registration process Pc are executed at random, so that the mechanical impression of the user on the toy is reduced. be able to.

【0058】ステップPa49において、ステップPa
45で取得された音声データと変数Vdの音声データの
特徴が一致していると判断されると、ステップPa50
において、ステップPa45で取得された音声データが
飼い主名としてFLASHROM3の所定のアドレスに
書き込まれる。その後、飼い主名が登録されたことを示
す音声、例えば登録された飼い主名が出力される。ペッ
ト名の登録における処理と同様に、FLASH ROM
3に飼い主名として登録された音声データを音声に変換
させる場合にも、音程変換回路5により音程を変化され
るので、あたかも玩具が自らの音声を発しているような
印象を使用者に与えることができる。
In step Pa49, step Pa
If it is determined that the characteristics of the voice data acquired in step 45 and the voice data of the variable Vd match, step Pa50
In, the audio data obtained in step Pa45 is written to a predetermined address of the flash ROM 3 as the owner name. Thereafter, a sound indicating that the owner name has been registered, for example, a registered owner name is output. As with the process for registering pet names, FLASH ROM
When the voice data registered as the owner's name in 3 is converted to voice, the pitch is changed by the pitch conversion circuit 5, so that the user is given the impression that the toy is emitting his own voice. Can be.

【0059】ペット名および飼い主名の登録が完了する
ことによって初起動モードM0の動作は完了し、動作モ
ードは遷移I2で起床モードM11に移行される。
When the registration of the pet name and the owner's name is completed, the operation of the first activation mode M0 is completed, and the operation mode is shifted to the wake-up mode M11 at transition I2.

【0060】次に、起床モードM11の動作を説明す
る。図9は、起床モードM11における処理を説明する
フローチャート図である。図4と図9の同一符号は同一
内容を示す。その他、Pd1〜Pd17はステップを示
している。
Next, the operation in the wake-up mode M11 will be described. FIG. 9 is a flowchart illustrating processing in the wake-up mode M11. 4 and 9 indicate the same contents. In addition, Pd1 to Pd17 indicate steps.

【0061】起床モードM11では、上述したランダム
発言処理Pbや自動音声登録処理Pcのほか、後述する
音声認識処理Peが生成された乱数によってランダムに
選択されて実行される。このとき、信頼パラメータによ
るモードが上述した病気モードM22にある場合はラン
ダム発言処理Pbや自動音声登録処理Pcが実行され
ず、時折病気を暗示するような音声が発せられる。仮死
モードM23にある場合は、ランダム発言処理Pb、自
動音声登録処理Pcおよび後述する音声認識処理Peが
全て実行されなくなり、仮死モードを通知する音声が発
せられる。また、頭部スイッチ8、コミュニケーション
スイッチ9、アラームスイッチ10の状態が監視され、
スイッチの状態に応じて各動作モードに処理を移行させ
る。さらに、起床モードM11に処理が移行してからの
時間が計測され、所定の時間を経過した場合は就寝モー
ドM12に処理を移行させる。
In the wake-up mode M11, in addition to the above-described random utterance processing Pb and the automatic voice registration processing Pc, a voice recognition processing Pe, which will be described later, is randomly selected and executed by the generated random numbers. At this time, if the mode based on the reliability parameter is the sick mode M22 described above, the random utterance process Pb and the automatic voice registration process Pc are not executed, and a voice that sometimes indicates the sickness is generated. In the temporary death mode M23, the random utterance process Pb, the automatic voice registration process Pc, and the voice recognition process Pe, which will be described later, are all not executed, and a voice notifying the temporary death mode is issued. Also, the status of the head switch 8, the communication switch 9, and the alarm switch 10 are monitored,
The processing is shifted to each operation mode according to the state of the switch. Further, the time from when the process is shifted to the wake-up mode M11 is measured, and when a predetermined time has elapsed, the process is shifted to the sleeping mode M12.

【0062】起床モードM11のステップPd1におい
て処理が開始されると、ステップPd2において、次に
述べる起床時間パラメータがリセットされてゼロにな
る。ステップPd3において、時計動作機構12から所
定の時間間隔、例えば2秒ごとに入力されるパルス信号
S2に応じて、起床時間パラメータをインクリメントす
る割り込み処理が開始される。起床時間パラメータの値
はステップPd2においてリセットされているため、こ
の値を参照することにより、ステップPd3からの経過
時間を計ることができる。
When the process is started in step Pd1 of the wake-up mode M11, in step Pd2, the wake-up time parameter described below is reset to zero. In step Pd3, an interrupt process for incrementing the wake-up time parameter is started in response to a pulse signal S2 input from the clock operation mechanism 12 at predetermined time intervals, for example, every two seconds. Since the value of the wake-up time parameter has been reset in step Pd2, the elapsed time from step Pd3 can be measured by referring to this value.

【0063】ステップPd4において、信頼パラメータ
に係るモードが仮死モードM23になっているかどうか
確認される。仮死モードM23になっている場合は、ス
テップPd5において仮死モードにあることを使用者に
通知する音声を発する。具体的には、ROM2の所定の
アドレスに記録されている仮死状態を表現する音声デー
タが読み出されてD/A変換され、音程変換回路5で音
程を変換されて音声増幅回路6を経てスピーカ7から音
声として出力される。その後、後述するステップPd1
1に処理が移行される。
In step Pd4, it is confirmed whether or not the mode relating to the reliability parameter is the asphyxia mode M23. In the case of the temporary death mode M23, a voice notifying the user of the temporary death mode is issued in step Pd5. More specifically, audio data representing a suspended state recorded at a predetermined address in the ROM 2 is read out, D / A-converted, pitch-converted by a pitch conversion circuit 5, passed through a voice amplification circuit 6 and passed through a speaker. 7 is output as audio. Thereafter, a step Pd1 described later.
The process is shifted to 1.

【0064】ステップPd4において仮死モードM23
でないことが確認された場合、次にステップPd6にお
いて病気モードM22になってるかどうか確認される。
病気モードM22になっている場合は、ステップPd7
において病気モードM22にあることを使用者に通知す
る音声を発する。具体的には、ROM2の所定のアドレ
スに記録されている病気状態を表現する音声データが読
み出されてD/A変換され、音程変換回路5で音程を変
換されて音声増幅回路6を経てスピーカ7から音声とし
て出力される。その後、後述する音声認識処理Peに処
理が移行される。
In step Pd4, the temporary death mode M23
If not, it is next checked in step Pd6 whether the mode is the sick mode M22.
If it is in the sick mode M22, step Pd7
At step S22, a voice is issued to notify the user that the user is in the sick mode M22. More specifically, voice data expressing a disease state recorded at a predetermined address in the ROM 2 is read out, D / A converted, the pitch is converted by a pitch conversion circuit 5, passed through a voice amplification circuit 6, and passed through a speaker. 7 is output as audio. Thereafter, the process proceeds to a speech recognition process Pe described later.

【0065】ステップPd4およびステップPd6にお
いて信頼パラメータに係るモードが仮死モードM23お
よび病気モードM22でない、すなわち健康モードM2
1になっていることが確認された後、ステップPd8〜
Pd10において音声認識処理Pe、ランダム発言処理
Pbおよび自動音声登録処理Pcがランダムに選択され
て実行される。具体的には、ステップPd8において0
〜2の整数がランダムに生成されて、変数mに代入され
る。次いでステップPd9において整数0と変数mの一
致が判断され、一致した場合は後述する音声認識処理P
eに処理が移行され、一致しない場合はステップPd1
0に処理が移行される。ステップPd10においては整
数1と変数mの一致が判断されて、一致した場合は上述
したランダム発言処理Pbに処理が移行され、一致しな
い場合は上述した自動音声登録処理Pcに処理が移行さ
れる。したがって、音声認識処理Pe、ランダム発言処
理Pbおよび自動音声登録処理Pcのいずれか選択され
て実行される。
In steps Pd4 and Pd6, the modes related to the reliability parameters are not the asphyxia mode M23 and the sick mode M22, ie, the health mode M2.
After it is confirmed that the value is 1, Step Pd8-
In Pd10, a speech recognition process Pe, a random utterance process Pb, and an automatic speech registration process Pc are randomly selected and executed. Specifically, at step Pd8, 0
An integer of ~ 2 is randomly generated and assigned to a variable m. Next, in step Pd9, a match between the integer 0 and the variable m is determined.
e is transferred to step e.
The process is shifted to 0. In step Pd10, it is determined that the integer 1 matches the variable m. If the two match, the process proceeds to the above-described random utterance process Pb, and if they do not match, the process proceeds to the above-described automatic voice registration process Pc. Therefore, any one of the speech recognition processing Pe, the random speech processing Pb, and the automatic speech registration processing Pc is selected and executed.

【0066】音声認識処理Pe、ランダム発言処理Pb
および自動音声登録処理Pcが終了したところで、ステ
ップPd11に処理が移行される。ステップPd11に
おいてはアラームスイッチ10の状態が確認され、アラ
ームスイッチ10がONになっている場合は上述した遷
移I5によってアラームモードM13に処理が移行され
る。アラームスイッチ10がOFFになっていることが
確認された場合は、ステップPd12に処理が移行され
る。
Voice recognition processing Pe, random speech processing Pb
After the completion of the automatic voice registration process Pc, the process proceeds to Step Pd11. In step Pd11, the state of the alarm switch 10 is confirmed, and if the alarm switch 10 is ON, the process is shifted to the alarm mode M13 by the above-described transition I5. If it is confirmed that the alarm switch 10 is turned off, the process proceeds to Step Pd12.

【0067】ステップPd12では、コミュニケーショ
ンスイッチ9の状態が確認される。コミュニケーション
スイッチ9がONになっている場合は、ステップPd1
3において信頼パラメータに係るモードの状態が確認さ
れ、モードが仮死モードにない場合に、上述した遷移I
7によってコミュニケーションモードM14に処理が移
行される。信頼パラメータに係るモードが仮死モードに
なっている場合は、コミュニケーションモードM14に
処理は移行されず、次のステップPd14へ処理が移行
される。また、ステップPd12においてコミュニケー
ションスイッチ9がONになっていないことが確認され
た場合にも、ステップPd14へ処理が移行される。
At step Pd12, the state of the communication switch 9 is confirmed. If the communication switch 9 is turned on, step Pd1
3, the state of the mode relating to the reliability parameter is confirmed, and if the mode is not in the suspended
7, the processing shifts to the communication mode M14. When the mode related to the reliability parameter is the temporary death mode, the process does not shift to the communication mode M14, and the process shifts to the next step Pd14. Also, when it is confirmed in step Pd12 that the communication switch 9 has not been turned ON, the process proceeds to step Pd14.

【0068】ステップPd14において、就寝モードが
選択されているか否かが確認される。就寝モードが選択
されている場合は上述した遷移I3によって就寝モード
M12に処理が移行され、選択されていない場合は後述
するステップPd15に処理が移行される。
At step Pd14, it is confirmed whether or not the sleep mode has been selected. When the sleep mode is selected, the process is shifted to the sleep mode M12 by the above-described transition I3, and when not selected, the process is shifted to Step Pd15 described later.

【0069】就寝モードが選択されたか否かの判別は、
就寝モード選択フラグの状態を確認することによってな
される。頭部スイッチ8がONされると割り込み処理が
発生し、その処理において就寝モード選択フラグがセッ
トされる。具体的には、ランダム発言処理Pbや音声認
識処理Pe、コミュニケーションモードM14において
制御回路1から音声信号が出力されているときに頭部ス
イッチ8がONされて上記の割り込み処理が発生する
と、この割り込み処理において就寝モード選択フラグが
セットされる。そして、ステップPd14において就寝
モード選択フラグの状態が判定され、就寝モード選択フ
ラグがセットされていることが確認された場合は、遷移
I3で就寝モードM12に処理が移行され、就寝モード
選択フラグがセットされていないことが確認された場合
は、ステップPd15に処理が移行される。すなわち、
ランダム発言処理Pbや音声認識処理Pe、コミュニケ
ーションモードM14において玩具が音声を発している
ときに玩具の頭部をたたいて頭部スイッチ8をONさせ
ると、玩具の動作モードは就寝モードに移行される。ス
テップPd14において就寝モード選択フラグの状態が
確認されて次の処理に移行する際に、就寝モード選択フ
ラグはリセットされる。以上の処理によって、使用者は
玩具の発生する音声が耳障りになった場合に、玩具の頭
をたたくことによって玩具の発声を停止させることがで
きる。
Whether the sleep mode has been selected or not is determined by
This is done by checking the state of the sleep mode selection flag. When the head switch 8 is turned on, an interruption process occurs, and in that process, a sleep mode selection flag is set. Specifically, when the head switch 8 is turned on while the voice signal is being output from the control circuit 1 in the random speech processing Pb, the voice recognition processing Pe, and the communication mode M14, and the above-described interrupt processing occurs, this interrupt is generated. In the process, a sleep mode selection flag is set. Then, in step Pd14, the state of the sleep mode selection flag is determined, and if it is confirmed that the sleep mode selection flag is set, the process proceeds to the sleep mode M12 in transition I3, and the sleep mode selection flag is set. If it is confirmed that the process has not been performed, the process proceeds to Step Pd15. That is,
In the random speech processing Pb, the voice recognition processing Pe, and the communication mode M14, when the toy is hit and the head switch 8 is turned on while the toy is emitting sound, the operation mode of the toy is shifted to the sleeping mode. You. When the state of the sleep mode selection flag is confirmed in step Pd14 and the process proceeds to the next process, the sleep mode selection flag is reset. By the above processing, the user can stop the sound of the toy by hitting the head of the toy when the sound generated by the toy becomes harsh.

【0070】ステップPd15において、起床時間の延
長が選択されているか否かが確認される。起床時間の延
長が選択されている場合はステップPd16に処理が移
行され、上記の起床時間パラメータがリセットされた後
ステップPd17に処理が移行される。また、起床時間
の延長が選択されていない場合は、ステップPd17へ
そのまま処理が移行される。後述するステップPd17
によって起床時間パラメータの計測する時間が所定の時
間を超えたときに起床モードM11から就寝モードM1
2へ処理が移行されるが、ステップPd16により起床
時間パラメータがリセットされると、計測した時間がゼ
ロに戻されるため、動作モードが起床モードM11から
就寝モードM12へ処理が移行されるまでの時間が延長
される。
At step Pd15, it is confirmed whether or not the extension of the wake-up time is selected. If the extension of the wake-up time is selected, the process proceeds to step Pd16, and after the wake-up time parameter is reset, the process proceeds to step Pd17. If the extension of the wake-up time has not been selected, the process proceeds to Step Pd17. Step Pd17 to be described later
From the wake-up mode M11 to the sleep mode M1 when the time for measuring the wake-up time parameter exceeds a predetermined time.
The processing is shifted to 2, but when the wake-up time parameter is reset in step Pd16, the measured time is returned to zero. Is extended.

【0071】起床時間の延長が選択されているか否かの
判別は、起床時間延長フラグの状態を確認することによ
ってなされる。頭部スイッチ8がONされると、就寝モ
ード選択フラグの場合と同様に割り込み処理が発生し、
その処理において起床時間延長フラグがセットされる。
具体的には、就寝モード選択フラグをセットさせる上述
の条件(ランダム発言処理Pbや音声認識処理Peにお
いて制御回路1から音声信号が出力されているとき)以
外の期間における起床モードM11において、頭部スイ
ッチ8がONされて上記の割り込み処理が発生すると、
この割り込み処理において起床時間延長フラグがセット
される。そして、ステップPd15において就寝モード
選択フラグの状態が判定され、起床時間延長フラグがセ
ットされていることが確認された場合は、ステップPd
16において起床時間パラメータがリセットされ、起床
時間延長フラグがセットされていないことが確認された
場合は、ステップPd17に処理が移行される。すなわ
ち、ランダム発言処理Pbや音声認識処理Pe、コミュ
ニケーションモードM14において玩具が音声を発して
いるとき以外の期間における起床モードM11において
玩具の頭部をたたいて頭部スイッチ8をONさせると、
動作モードが就寝モードM12に移行されるまでの時間
を延長させることができる。ステップPd15において
起床時間延長フラグの状態が確認されて次の処理に移行
する際に、起床時間延長フラグはリセットされる。以上
の処理によって、使用者は好きなだけ起床モードM11
を延長させて玩具の動作を楽しむことができる。
Whether the extension of the wake-up time is selected or not is determined by checking the state of the wake-up time extension flag. When the head switch 8 is turned on, an interrupt process occurs as in the case of the sleep mode selection flag,
In the process, a wake-up time extension flag is set.
Specifically, in the wake-up mode M11 in a period other than the above-described conditions for setting the sleeping mode selection flag (when a voice signal is output from the control circuit 1 in the random speech processing Pb or the voice recognition processing Pe), When the switch 8 is turned on and the above interrupt processing occurs,
In this interrupt processing, the wake-up time extension flag is set. Then, in step Pd15, the state of the sleep mode selection flag is determined, and if it is confirmed that the wake-up time extension flag is set, the process proceeds to step Pd
If the wake-up time parameter is reset at 16 and it is confirmed that the wake-up time extension flag has not been set, the process proceeds to step Pd17. That is, when the toy head is hit in the wake-up mode M11 in a period other than when the toy is emitting a voice in the random speech processing Pb, the voice recognition processing Pe, and the communication mode M14 to turn on the head switch 8,
The time until the operation mode is shifted to the sleep mode M12 can be extended. When the state of the wake-up time extension flag is confirmed in step Pd15 and the process proceeds to the next process, the wake-up time extension flag is reset. By the above processing, the user can wake up mode M11 as much as desired.
Can be extended to enjoy the operation of the toy.

【0072】なお、頭部スイッチ8がONされたとき
に、所定の音声データを玩具に発声させる処理を設ける
ことができる。これにより、使用者が玩具の頭部に触れ
たことによって生ずる玩具の反応を楽しむことができ
る。このとき、頭部スイッチがONされている時間に応
じて異なる音声を発生させることもできる。例えば制御
回路1に適切な周期を有するパルスを設け、このパルス
の数を頭部スイッチがONされたときからOFFされた
ときまでの期間制御回路1に計数させることにより、頭
部スイッチがONされている時間を計測させ、このよう
な方法で計数したパルス数に応じて、玩具に発声させる
音声を変化させることができる。
When the head switch 8 is turned on, a process for causing the toy to emit predetermined voice data can be provided. Thereby, the reaction of the toy caused by the user touching the head of the toy can be enjoyed. At this time, different sounds can be generated according to the time during which the head switch is ON. For example, a pulse having an appropriate period is provided in the control circuit 1 and the number of pulses is counted by the control circuit 1 during the period from when the head switch is turned on to when the head switch is turned off. The sound to be uttered by the toy can be changed according to the number of pulses counted by such a method.

【0073】図15は、このスイッチング時間に応じた
発声処理を説明するフローチャート図である。図15に
おいて、Pi1〜Pi8はステップを示している。
FIG. 15 is a flow chart for explaining the utterance processing according to the switching time. In FIG. 15, Pi1 to Pi8 indicate steps.

【0074】このスイッチング時間に応じた発声処理
は、頭部スイッチ8がONされたことを検知したステッ
プPi1より開始される。まず、ステップPi2におい
て、たとえば上記したパルス数の計数による方法によ
り、頭部スイッチ8がONしてからOFFされるまでの
時間TSWが計測される。次いで、ステップPi3におい
て、たとえば制御回路1により、このスイッチング時間
SWが所定の時間範囲内にあるか否かが判断される。具
体的には、スイッチング時間TSWが下限値T1(たとえ
ば0.03秒)以上、所定値T2(たとえば0.4秒)
未満の範囲にあるときは、ステップPi4に処理が移行
し、その範囲外のときはステップPi5に処理が移行す
る。
The utterance process according to the switching time is started from step Pi1 in which it is detected that the head switch 8 has been turned on. First, in step Pi2, the time T SW from when the head switch 8 is turned on to when it is turned off is measured by, for example, the method of counting the number of pulses described above. Next, in step Pi3, for example, the control circuit 1 determines whether or not the switching time T SW is within a predetermined time range. Specifically, the switching time T SW is equal to or longer than the lower limit value T1 (for example, 0.03 seconds) and the predetermined value T2 (for example, 0.4 seconds).
If it is less than the range, the process shifts to step Pi4, and if it is out of the range, the process shifts to step Pi5.

【0075】処理がステップPi4に移行すると、たと
えば怒り音声1「ブ〜」または怒り音声2「ブルルルル
ル」が1回または複数回発声される。具体的には、RO
M2に記録されている音声、例えば「ブ〜」または「ブ
ルルルルル」といった音声データがROM2から読み出
されてD/A変換され、音程変換回路5で音程を変換さ
れた後に音声増幅回路6により増幅されてスピーカ7よ
り音声として出力される。一方、処理がステップPi5
に移行した場合、ここでスイッチング時間TSWが所定値
T2以上であるか否かが判断され、所定値T2以上であ
る場合は、ステップPi6において、快楽音声、たとえ
ば「フェイ〜ン」または「クウ〜」などの音声が上記し
た怒り音と同様な手順を経て発声される。
When the process proceeds to step Pi4, for example, anger voice 1 "bu-" or anger voice 2 "burururururu" is uttered once or more than once. Specifically, RO
The audio data recorded in M2, for example, audio data such as "B" or "Bururu Lulu" is read from the ROM 2 and D / A converted. The pitch is converted by the pitch conversion circuit 5 and then amplified by the audio amplification circuit 6. The sound is output from the speaker 7 as sound. On the other hand, the processing is performed at step Pi5.
In this case, it is determined whether or not the switching time T SW is equal to or longer than the predetermined value T2. If the switching time T SW is equal to or longer than the predetermined value T2, in step Pi6, a pleasure voice, for example, “fey to n” or “ ~ "Is uttered through the same procedure as the anger sound described above.

【0076】このようにして怒り音声または快楽音声が
出力された後、ステップPi7において、選択モードが
判断される。たとえば、起床モードまたはコミュニケー
ションモード中に頭部スイッチ8が押されて本処理が開
始された場合は、図15に示すように、ステップPi7
において就寝モードが選択されているか否かが判断さ
れ、就寝モードが選択されている場合に就寝モードM1
2に強制的に移行され、就寝モードが選択されていない
場合には起床モードM11またはコミュニケーションモ
ードM14が維持される。逆に、就寝モード中に頭部ス
イッチ8が押されて本処理が開始された場合は、図15
のステップPi7の箇所で、起床モードが選択されてい
るか否かが判断され、起床モードが選択されている場合
に起床モードM11に強制的に移行され、起床モードが
選択されていない場合には就寝モードM11が維持され
る。なお、ここでは重複して説明しないが、前記したよ
うに就寝モードまたは起床モードの選択の判断は、音声
が出力中か否かで異なる結果をとる。
After the anger voice or the pleasure voice is output in this way, in step Pi7, the selection mode is determined. For example, when the head switch 8 is pressed during the wake-up mode or the communication mode to start the present process, as shown in FIG.
It is determined whether or not the sleep mode has been selected in the sleep mode, and if the sleep mode has been selected, the sleep mode M1
2 and the sleep mode is not selected, and the wake-up mode M11 or the communication mode M14 is maintained. Conversely, when the head switch 8 is pressed during the sleep mode to start this processing,
In step Pi7, it is determined whether or not the wake-up mode has been selected. If the wake-up mode has been selected, the process is forcibly shifted to the wake-up mode M11. Mode M11 is maintained. Although not redundantly described here, as described above, the determination of the selection of the sleep mode or the wake-up mode has a different result depending on whether or not the sound is being output.

【0077】一方、スイッチング時間TSWが下限値T1
より短い場合は、ステップPi3およびステップPi5
の範囲に該当しないため、処理がステップPi8に進
み、頭部スイッチ8が有効に押されなかったものとみな
して、当該処理開始時の元の処理を続行する。
On the other hand, the switching time T SW is lower than the lower limit T1.
If shorter, step Pi3 and step Pi5
Does not fall within the range, the process proceeds to step Pi8, and it is assumed that the head switch 8 has not been effectively pressed, and the original process at the start of the process is continued.

【0078】このように、例えば頭部スイッチのON時
間が0.03秒以上、0.4秒未満の間にあるときは頭
を叩かれたと見なして、怒りを表現した音声を玩具に発
声させ、頭部スイッチが0.4秒より長くONにされた
場合は頭をなでられたとみなして快楽を表現した音声を
玩具に発声させる処理を、頭部スイッチ8がONされ発
生する割り込みまたは分岐処理において実行させる。な
お、頭部スイッチに圧力を検出させるセンサーを内蔵さ
せて、圧力の大小に応じて音声を変化させることもでき
る。さらに、音声データの種類を後で述べる気分パラメ
ータによって変化させて、快や不快の気分を音声によっ
て表現させることもできる。以上のような処理により、
使用者の操作に対し玩具は多様な音声を発してこれに応
じることができるので、玩具の機械的な印象が薄らぎ、
擬似生物としての趣向性を高めることができる。
As described above, for example, when the ON time of the head switch is between 0.03 seconds and less than 0.4 seconds, it is considered that the head has been hit, and the voice expressing anger is uttered by the toy. When the head switch is turned on for more than 0.4 seconds, the processing of causing the toy to utter a voice expressing pleasure by assuming that the head has been stroked is performed by interrupting or branching when the head switch 8 is turned on. It is executed in the process. It is also possible to incorporate a sensor for detecting pressure in the head switch and change the sound in accordance with the magnitude of the pressure. Further, the type of voice data can be changed by a mood parameter to be described later to express pleasant or unpleasant mood by voice. By the above processing,
Since the toy can respond to the operation of the user by emitting various sounds, the mechanical impression of the toy is weakened,
The taste as a simulated creature can be enhanced.

【0079】次に、上述した音声認識処理Peの動作を
説明する。図10は、音声認識処理Peにおける処理を
説明するフローチャート図である。図10においてPe
1〜Pe16およびPf、Pg、Phはステップを示し
ている。
Next, the operation of the speech recognition processing Pe will be described. FIG. 10 is a flowchart illustrating processing in the voice recognition processing Pe. In FIG.
1 to Pe16 and Pf, Pg, Ph indicate steps.

【0080】まず、音声認識処理Peの概要を説明す
る。音声認識処理Peでは、マイク4から入力された音
声データとFLASH ROM3に記録されている音声
データの特徴が比較され、特徴の一致する音声データが
FLASH ROM3に記録されている場合は会話処理
Phを実行させる。会話処理Phでは、マイク4から入
力された音声に対し、ROM2およびFLASH RO
M3に記録されている音声データがさまざまな組み合わ
せで音声に変換されて発声される。このため、使用者は
マイクに入力した音声に対して玩具の発する意外な音声
の応答を楽しむことができる。一方、マイク4から入力
された音声データと特徴の一致する音声データがFLA
SH ROM3に記録されていない場合は、後述する仮
登録処理Pfおよび登録延長処理Pgが実行される。こ
れにより、マイク4から入力された音声は制御回路1で
音声データに変換されてFLASH ROM3に記録さ
れる。仮登録処理Pfおよび登録延長処理Pgには、音
声データをFLASH ROM3に記録させるまでの過
程をランダムに変化させる処理が含まれており、玩具に
音声を覚えさせる行為に対して使用者に面白味を持たせ
ている。
First, the outline of the speech recognition processing Pe will be described. In the voice recognition processing Pe, the voice data input from the microphone 4 and the features of the voice data recorded in the FLASH ROM 3 are compared. If the voice data having the matching features is recorded in the FLASH ROM 3, the speech processing Ph is performed. Let it run. In the conversation processing Ph, the voice input from the microphone 4 is read from the ROM 2 and the FLASH RO.
The voice data recorded in M3 is converted into voice in various combinations and uttered. Therefore, the user can enjoy an unexpected voice response from the toy to the voice input to the microphone. On the other hand, audio data whose characteristics match the audio data input from the microphone 4 is FLA
If not recorded in the SH ROM 3, a temporary registration process Pf and a registration extension process Pg, which will be described later, are executed. As a result, the sound input from the microphone 4 is converted into sound data by the control circuit 1 and recorded on the FLASH ROM 3. The temporary registration process Pf and the registration extension process Pg include a process of randomly changing a process until voice data is recorded in the FLASH ROM 3, and provide a user with an interest in an action of causing a toy to remember a voice. I have it.

【0081】また、音声認識処理Peにおいてマイク4
に入力された音声が制御回路1によって音声データに変
換される度に、気分パラメータがインクリメントされ
る。気分パラメータは上述したランダム発言処理Pbに
おいて発声させる音声や、頭部スイッチ8をONさせた
時に発声させる音声の種類を変化させるパラメータであ
る。また、上述した信頼パラメータと関係しており、気
分パラメータが所定の最大値まで高められた場合に、信
頼パラメータがインクリメントされる。すなわち、音声
認識処理Peで音声を認識させる毎に気分パラメータが
大きくなり、気分パラメータに応じて信頼パラメータも
大きくなる。一方、気分パラメータおよび信頼パラメー
タは時計動作機構12の出力する所定周期のパルス信号
S2の計数によって所定時間ごとに発生される割り込み
処理において、所定時間ごとにデクリメントされるた
め、音声認識処理Peにおいて玩具に音声を認識させる
操作を使用者が怠ると、気分パラメータの低下によって
玩具の発生する音声の種類が変化するのみならず、信頼
パラメータの低下によって一定期間の後玩具の動作モー
ドは自動的に病気モードM22や仮死モードM23に移
行して、通常の処理の一部が動作不能になってしまう。
以上のように、玩具に音声を認識させる処理と玩具の他
の挙動を関連付けているため、玩具に対して継続的に音
声を与えて世話をする行為に対し、使用者に面白味を持
たせている。
In the speech recognition processing Pe, the microphone 4
The mood parameter is incremented each time the control circuit 1 converts the sound input into the mood parameter. The mood parameter is a parameter that changes the type of voice to be uttered in the above-described random utterance processing Pb or the type of voice to be uttered when the head switch 8 is turned on. Also, related to the above-mentioned reliability parameter, when the mood parameter is raised to a predetermined maximum value, the reliability parameter is incremented. That is, each time a voice is recognized in the voice recognition processing Pe, the mood parameter increases, and the reliability parameter increases in accordance with the mood parameter. On the other hand, the mood parameter and the reliability parameter are decremented every predetermined time in the interrupt processing generated every predetermined time by counting the pulse signal S2 of the predetermined cycle output from the clock operation mechanism 12, so that the toy in the voice recognition processing Pe is performed. If the user neglects the operation of recognizing the voice, the type of voice generated by the toy changes due to the decrease in the mood parameter, and the operation mode of the toy automatically becomes ill after a certain period due to the reduction in the reliability parameter. The mode shifts to the mode M22 or the temporary death mode M23, and a part of the normal processing becomes inoperable.
As described above, since the process of causing the toy to recognize the voice and the other behavior of the toy are associated with each other, the user is given an interest in the act of continuously giving a voice to the toy and taking care of the toy. I have.

【0082】以下に、音声認識処理Peの詳細な動作を
説明する。
Hereinafter, the detailed operation of the speech recognition processing Pe will be described.

【0083】音声認識処理Peは、ステップPe1より
開始される。まず、ステップPe2において音声認識時
間パラメータがリセットされ、その後ステップPe3に
おいて、時計動作機構12から所定の時間間隔、例えば
2秒ごとに入力されるパルス信号S2に応じて音声認識
時間パラメータをインクリメントする割り込み処理が開
始される。音声認識時間パラメータの値はステップPe
2においてリセットされているため、この値を参照する
ことにより、ステップPe3からの経過時間を計測する
ことができる。
The speech recognition processing Pe is started from step Pe1. First, the voice recognition time parameter is reset in step Pe2, and thereafter, in step Pe3, an interrupt for incrementing the voice recognition time parameter in response to a pulse signal S2 input from the clock operating mechanism 12 at predetermined time intervals, for example, every two seconds. Processing is started. The value of the speech recognition time parameter is determined by the step Pe.
2, the elapsed time from step Pe3 can be measured by referring to this value.

【0084】音声認識時間の計測が開始された後、ステ
ップPe4においてマイク4から入力される音声の有無
が制御回路1によって判断される。具体的には、マイク
4から入力された音声信号のレベルが所定のしきい値よ
り小さいとき音声信号が入力されていないと判断され、
所定のしきい値より大きいとき音声信号が入力されてい
ると判断される。制御回路1において音声信号が入力さ
れていないと判断された場合、ステップPe5に処理が
移行される。ステップPe5では、上述した音声認識時
間パラメータの値によって示されるステップPe3から
の経過時間と所定の時間、例えば30秒間とが比較され
て、経過時間が30秒間より短い場合、ステップPe4
に再び処理が戻されて、マイク4から入力される音声の
有無が検出される。30秒以内にステップPe4におい
て音声が検出された場合は、前記した音声認識時間パラ
メータをインクリメントする割り込み処理が停止されて
ステップPe4からステップPe6に処理が移行され
る。また、30秒以内にステップPe4において音声が
検出されなかった場合は、同様に音声認識時間パラメー
タをインクリメントする割り込み処理が停止された後、
ステップPe5からステップPe16に処理が移行さ
れ、音声認識処理が終了する。
After the start of the measurement of the voice recognition time, the control circuit 1 determines whether or not there is a voice input from the microphone 4 in step Pe4. Specifically, when the level of the audio signal input from the microphone 4 is smaller than a predetermined threshold, it is determined that the audio signal is not input,
When it is larger than the predetermined threshold value, it is determined that the audio signal is being input. If the control circuit 1 determines that no audio signal has been input, the process proceeds to step Pe5. In step Pe5, the elapsed time from step Pe3 indicated by the value of the above-described voice recognition time parameter is compared with a predetermined time, for example, 30 seconds.
The process is returned again to detect the presence or absence of the voice input from the microphone 4. If a voice is detected in step Pe4 within 30 seconds, the interrupt process for incrementing the voice recognition time parameter is stopped, and the process shifts from step Pe4 to step Pe6. If no voice is detected in step Pe4 within 30 seconds, the interrupt processing for incrementing the voice recognition time parameter is similarly stopped.
The process proceeds from step Pe5 to step Pe16, and the voice recognition process ends.

【0085】ステップPe6では、ステップPe4で検
出されたアナログの音声信号が、制御回路1でA/D変
換を施されてデジタル化された音声データに変換され
る。この際、例えば、音声の大きさが制御回路1におい
て定められている上限のしきい値より大きい場合や、下
限のしきい値より小さい場合、さらには音声の長さが定
められた上限のしきい値より長い場合には、ステップP
e7に処理が移行されて、入力された音声のレベルが不
適当であることを知らせる音声が発せられる。具体的に
は、例えば「ブ〜」という音のデータがROM2から読
み出されてD/A変換され、音程変換回路5、音声増幅
回路6を経てスピーカー7より音声として発せられる。
その後、ステップPe7に処理を戻して、再び音声の入
力を待つ処理が実行される。ステップPe6において、
マイク4による音声信号が音声データへ正常に変換され
た場合、取得された音声データは変数Vdに代入され
る。
At step Pe6, the analog audio signal detected at step Pe4 is subjected to A / D conversion by the control circuit 1 and converted into digitized audio data. At this time, for example, when the volume of the voice is larger than the upper threshold set in the control circuit 1, or smaller than the lower threshold, the voice length is set to the upper limit. If it is longer than the threshold, step P
The process proceeds to e7, and a sound is generated to notify that the level of the input sound is inappropriate. More specifically, for example, data of the sound “B” is read from the ROM 2, D / A-converted, and transmitted as a sound from the speaker 7 through the pitch conversion circuit 5 and the sound amplification circuit 6.
Thereafter, the process returns to step Pe7, and the process of waiting for the input of the voice is performed again. In step Pe6,
When the audio signal from the microphone 4 is normally converted into audio data, the acquired audio data is substituted for the variable Vd.

【0086】音声データが変数Vdに代入された後、ス
テップPe9において、上記した気分パラメータが例え
ば1だけインクリメントされ、ステップPe10に処理
が移行される。その後、ステップPe10において玩具
が病気モードM22にあるか否かが確認され、病気モー
ドM22にある場合はステップPe11で病気モードに
あることを示す音声データがROM2から読み出されて
音声信号に変換され、音程変換回路5、音声増幅回路6
を経てスピーカ7より音声として出力される。そして、
ステップPe12で音声認識回数をインクリメントした
後、ステップPe4に処理が戻されて、再び音声の入力
を待つ処理が実行される。このように、玩具が病気モー
ドM22にある場合は、後述する音声の登録処理が実行
されない。
After the voice data is substituted for the variable Vd, in step Pe9, the above-mentioned mood parameter is incremented by, for example, 1, and the process proceeds to step Pe10. Thereafter, in step Pe10, it is confirmed whether or not the toy is in the sick mode M22. If the toy is in the sick mode M22, in step Pe11 voice data indicating that the toy is in the sick mode is read from the ROM 2 and converted into a voice signal. , Pitch conversion circuit 5, sound amplification circuit 6
Is output from the speaker 7 as audio. And
After incrementing the number of times of voice recognition in step Pe12, the process returns to step Pe4, and the process of waiting for the input of voice again is executed. As described above, when the toy is in the sick mode M22, a voice registration process described later is not executed.

【0087】ステップPe10において玩具が病気モー
ドにないことが確認された場合、ステップPe13に処
理が移行される。ステップPe13において、ステップ
Pe8で変数Vdに代入されている音声データと、FL
ASH ROM3に既に登録されている音声データ(以
下、登録ワードと呼ぶ)の特徴が比較される。そして、
所定の判断手法により互いの音声データの特徴が一致し
ていると判定される登録ワードが見つかると、その登録
ワードの記憶場所を示す番号が登録ワード番号として変
数Jに代入される(ステップPe14)。次いで、取得
された登録ワードが後述する仮登録ワードであるか否か
が判定され(ステップPe15)、仮登録ワードでない
場合は上述した会話処理Phが実行された後、再びステ
ップPe2に戻って、音声の入力を待つ処理が実行され
る。
If it is determined in step Pe10 that the toy is not in the sick mode, the process proceeds to step Pe13. In step Pe13, the voice data substituted for the variable Vd in step Pe8 and FL
The features of audio data (hereinafter referred to as registered words) already registered in the ASH ROM 3 are compared. And
When a registered word that is determined to have the same voice data characteristics by a predetermined determination method is found, a number indicating the storage location of the registered word is substituted into the variable J as a registered word number (step Pe14). . Next, it is determined whether or not the acquired registration word is a temporary registration word described later (step Pe15). If the obtained registration word is not a temporary registration word, the above-described conversation processing Ph is performed, and the process returns to step Pe2 again. A process for waiting for a voice input is executed.

【0088】ステップPe13における検索において、
変数Vdに代入されている音声データに特徴が一致して
いる音声データがFLASH ROM3に見つからなか
った場合、入力された言葉を再度使用者に入力させて、
登録ワードとして玩具に記憶させるための仮登録処理P
fおよび登録延長処理Pgが実行される。これらの処理
の詳細については後で説明する。登録延長処理Pgが終
了すると、会話処理Phと同様に、ステップPe2へ処
理が戻されて再び音声の入力を待つ処理が実行される。
また、ステップPe14で検索された登録ワードが仮登
録された登録ワードであることがステップPe15にお
いて確認されたときは、会話処理Phが実行されるかわ
りに登録延長処理Pgが実行される。
In the search in step Pe13,
If no voice data whose characteristics match the voice data assigned to the variable Vd is found in the FLASH ROM 3, the input word is input again by the user.
Temporary registration process P for storing in a toy as a registration word
f and registration extension processing Pg are executed. Details of these processes will be described later. When the registration extension process Pg ends, the process returns to step Pe2, and the process of waiting for the input of a voice is executed again, similarly to the conversation process Ph.
When it is confirmed in step Pe15 that the registered word searched in step Pe14 is the temporarily registered word, the registration extension process Pg is executed instead of the conversation process Ph.

【0089】続いて、上述した仮登録処理Pfの動作を
説明する。図11および図12は、仮登録処理Pfにお
ける処理を説明するフローチャート図である。図11お
よび図12においてPf1〜Pf33はステップを示し
ている。また、図11のと図12のはステップの接
続関係を示している。
Next, the operation of the above-described temporary registration process Pf will be described. FIG. 11 and FIG. 12 are flowcharts for explaining processing in the temporary registration processing Pf. 11 and 12, Pf1 to Pf33 indicate steps. FIG. 11 and FIG. 12 show the connection relation of the steps.

【0090】仮登録処理Pfにおいては、マイク4から
入力された音声を、登録ワードとしてFLASH RO
M3に記録する処理が行なわれる。そのとき、使用者が
ステップPf5で入力させた音声を登録ワードとして玩
具に記憶させる意志を有しているか否かを確認するため
に、同一の音声を複数回入力させる処理を行い、これら
の処理で入力された音声データの特徴が一致していると
判断されたときに、その音声データを登録ワードとして
FLASH ROM3に記録させる。前記の処理を行な
うことによって、例えば誤った音声を玩具に入力してし
まった場合のように、登録させる意志がない音声が玩具
に登録される不都合が防止されるので、新規な音声を登
録させる場合に例えばボタンを押すなどの面倒な操作が
不要になる。
In the temporary registration process Pf, the voice input from the microphone 4 is used as a registration word in the FLASH RO
The process of recording in M3 is performed. At this time, in order to confirm whether or not the user has the intention to store the voice input in step Pf5 as a registration word in the toy, a process of inputting the same voice a plurality of times is performed. When it is determined that the characteristics of the input audio data match, the audio data is recorded in the FLASH ROM 3 as a registered word. By performing the above-described processing, it is possible to prevent inconvenience in which a voice that has no intention to be registered is registered in the toy, such as when an erroneous voice is input to the toy, so that a new voice is registered. In such a case, a troublesome operation such as pressing a button becomes unnecessary.

【0091】ステップPf1において、仮登録処理Pf
1の処理が開始される。ステップPf2において、仮登
録処理Pf1の最初に玩具が音声を発する処理が実行さ
れる。具体的には、ROM2に記録されている音声、例
えば「ウン?」といった音声データがROM2から読み
出されてD/A変換、音程変換回路5で音程を変換され
た後に音声増幅回路6により増幅されてスピーカ7より
音声として出力される。このように、ステップPf2に
おいて玩具から所定の音声が発せられることにより、使
用者は入力した音声が玩具に登録されていない音声であ
ることを確認できる。
In step Pf1, a temporary registration process Pf
1 is started. In step Pf2, a process in which the toy emits sound is executed at the beginning of the temporary registration process Pf1. More specifically, audio data recorded in the ROM 2, for example, audio data such as "un?" The sound is output from the speaker 7 as sound. As described above, the predetermined sound is emitted from the toy in step Pf2, so that the user can confirm that the input sound is sound not registered in the toy.

【0092】ステップPf3において、待ち時間パラメ
ータがリセットされ、ステップPa4において、時計動
作機構12から所定の時間間隔、例えば2秒ごとに入力
されるパルス信号S2に応じて、待ち時間パラメータを
インクリメントする割り込み処理が開始される。待ち時
間パラメータの値はステップPf3においてリセットさ
れているため、この値を参照することにより、ステップ
Pf4からの経過時間を計ることができる。
In step Pf3, the waiting time parameter is reset, and in step Pa4, an interrupt for incrementing the waiting time parameter in response to a pulse signal S2 input from the clock operating mechanism 12 at predetermined time intervals, for example, every two seconds. Processing is started. Since the value of the waiting time parameter has been reset in step Pf3, the elapsed time from step Pf4 can be measured by referring to this value.

【0093】ステップPf5において、マイク4から入
力される音声の有無が制御回路1によって判断される。
具体的には、マイク4から入力された音声信号のレベル
が所定のしきい値より小さいとき音声信号が入力されて
いないと判断され、所定のしきい値より大きいとき音声
信号が入力されていると判断される。制御回路1におい
て音声信号が入力されていないと判断された場合、ステ
ップPf6に処理が移行される。ステップPf6では、
上述した待ち時間パラメータの値によって示されるステ
ップPf4からの経過時間と所定の時間、例えば10秒
間とが比較されて、経過時間が10秒間より短い場合、
ステップPf5に再び処理が戻されて、マイク4から入
力される音声の有無が検出される。10秒以内にステッ
プPf5において音声が検出された場合は、前記した待
ち時間パラメータをインクリメントする割り込み処理が
停止されてステップPf5からステップPf7に処理が
移行される。また、10秒以内にステップPf5におい
て音声が検出されなかった場合は、同様に待ち時間パラ
メータをインクリメントする割り込み処理が停止された
後、ステップPf6から上述した音声認識処理Peの冒
頭のステップに処理が移行される。
In step Pf5, the control circuit 1 determines whether or not there is a voice input from the microphone 4.
Specifically, when the level of the audio signal input from the microphone 4 is smaller than a predetermined threshold, it is determined that the audio signal is not input, and when the level is higher than the predetermined threshold, the audio signal is input. Is determined. If the control circuit 1 determines that no audio signal has been input, the processing shifts to step Pf6. In Step Pf6,
The elapsed time from step Pf4 indicated by the value of the waiting time parameter described above is compared with a predetermined time, for example, 10 seconds, and when the elapsed time is shorter than 10 seconds,
The process returns to step Pf5, and the presence or absence of the voice input from the microphone 4 is detected. If a voice is detected in Step Pf5 within 10 seconds, the interrupt process for incrementing the waiting time parameter is stopped, and the process shifts from Step Pf5 to Step Pf7. If no voice is detected in step Pf5 within 10 seconds, the interrupt process for incrementing the waiting time parameter is similarly stopped, and the process proceeds from step Pf6 to the first step of the above-described voice recognition process Pe. Will be migrated.

【0094】ステップPf7では、ステップPf5で検
出されたアナログの音声信号が、制御回路1でA/D変
換を施されてデジタル化された音声データに変換され
る。この際、例えば、音声の大きさが制御回路1におい
て定められている上限のしきい値より大きい場合や、下
限のしきい値より小さい場合、さらには音声の長さが定
められた上限のしきい値より長い場合には、ステップP
f8に処理が移行されて、入力された音声のレベルが不
適当であることを知らせる音声が発せられる。具体的に
は、例えば「ブ〜」という音のデータがROM2から読
み出されてD/A変換され、音程変換回路5、音声増幅
回路6を経てスピーカー7より音声として発せられる。
この後、上述した音声認識処理Peの冒頭のステップに
処理が戻される。ステップPf7において音声データが
正常に取得された場合は、次のステップPf9におい
て、音声データが認識されたことを使用者に通知する音
声、例えば「ウン?」という音声データがROM2から
読み出されてD/A変換され、音程変換回路5、音声増
幅回路6を経てスピーカー7より音声として発せられ
る。
At step Pf7, the analog audio signal detected at step Pf5 is subjected to A / D conversion by the control circuit 1 and converted into digitized audio data. At this time, for example, when the volume of the voice is larger than the upper threshold set in the control circuit 1, or smaller than the lower threshold, the voice length is set to the upper limit. If it is longer than the threshold, step P
The process shifts to f8, and a sound is generated to notify that the level of the input sound is inappropriate. More specifically, for example, data of the sound “B” is read from the ROM 2, D / A-converted, and transmitted as a sound from the speaker 7 through the pitch conversion circuit 5 and the sound amplification circuit 6.
Thereafter, the process returns to the first step of the above-described speech recognition processing Pe. If the voice data is normally acquired in step Pf7, in the next step Pf9, a voice for notifying the user that the voice data has been recognized, for example, voice data "Un?" It is D / A converted and is emitted as sound from a speaker 7 through a pitch conversion circuit 5 and a sound amplification circuit 6.

【0095】ステップPf10において、上述した待ち
時間パラメータが再びリセットされ、ステップPf11
において、時計動作機構12から所定の時間間隔ごとに
入力されるパルス信号S2に応じて、待ち時間パラメー
タをインクリメントする割り込み処理が開始される。ス
テップPf12においては、後述するステップPf17
において使用される整数kの値がゼロにリセットされ
る。
In step Pf10, the above-described waiting time parameter is reset again, and the process proceeds to step Pf11.
In, an interrupt process for incrementing the waiting time parameter is started according to the pulse signal S2 input from the clock operating mechanism 12 at predetermined time intervals. In step Pf12, step Pf17 described later
Is reset to zero.

【0096】ステップPf13において、マイク4から
入力される音声の有無が再び制御回路1によって判断さ
れ、音声信号が入力されていないと判断された場合、ス
テップPf14に処理が移行される。ステップPf14
では、上述した待ち時間パラメータの値によって示され
るステップPf11からの経過時間と所定の時間、例え
ば10秒間とが比較されて、経過時間が10秒間より短
い場合、ステップPf13に再び処理が戻されて、マイ
ク4から入力される音声の有無が検出される。10秒以
内にステップPf13において音声が検出された場合
は、前記した待ち時間パラメータをインクリメントする
割り込み処理が停止されてステップPf13からステッ
プPf15に処理が移行される。また、10秒以内にス
テップPf13において音声が検出されなかった場合
は、同様に待ち時間パラメータをインクリメントする割
り込み処理が停止された後、音声認識処理Peの冒頭の
ステップに処理が戻される。
In step Pf13, the control circuit 1 determines again whether or not there is a voice input from the microphone 4, and if it is determined that no voice signal has been input, the process proceeds to step Pf14. Step Pf14
Then, the elapsed time from step Pf11 indicated by the value of the waiting time parameter is compared with a predetermined time, for example, 10 seconds. If the elapsed time is shorter than 10 seconds, the process returns to step Pf13 again. , The presence or absence of a voice input from the microphone 4 is detected. If a voice is detected in Step Pf13 within 10 seconds, the interrupt process for incrementing the waiting time parameter is stopped, and the process shifts from Step Pf13 to Step Pf15. If no voice is detected in Step Pf13 within 10 seconds, the interrupt process for incrementing the waiting time parameter is similarly stopped, and the process returns to the first step of the voice recognition process Pe.

【0097】ステップPf15では、ステップPf13
で検出されたアナログの音声信号が、制御回路1でA/
D変換を施されてデジタル化された音声データに変換さ
れる。上述したステップPf7と同様の条件で入力され
た音声が不適当と判断された場合は、ステップPf16
に処理が移行されて、入力された音声のレベルが不適当
であることを知らせる音声、例えば「ブ〜」といった音
声データがROM2から読み出されてD/A変換され、
音程変換回路5、音声増幅回路6を経てスピーカー7よ
り音声として発せられる。次いで、ステップPf17に
おいて上述した整数kの値が1だけインクリメントさ
れ、ステップPf18でこの整数kと整数1の大小関係
が判断される。整数kが所定の整数、例えば1と等しい
か、または1より小さい場合は、ステップPf13に戻
って再び音声の入力を待つ処理が実行され、整数kが1
より大きい場合は、音声認識処理Peの冒頭のステップ
に処理が戻される。このように、音声のレベルが不適当
であった場合に所定の回数(上記の例では1回)だけ音
声を再入力させる機会を設けているので、誤った音声を
入力してしまったとき直ちに音声認識処理Peの冒頭の
ステップに戻って初めから入力をやり直さなくても済
み、同じ操作を反復させられる不便さが軽減される。
In Step Pf15, Step Pf13
The analog audio signal detected by the control circuit 1
It is subjected to D conversion and converted to digitized audio data. If it is determined that the voice input under the same conditions as in step Pf7 described above is inappropriate, the process proceeds to step Pf16.
The sound is transmitted from the ROM 2 and is subjected to D / A conversion, for example, sound data indicating that the level of the inputted sound is inappropriate, for example, sound data such as "B".
The sound is emitted from a speaker 7 through a pitch conversion circuit 5 and a sound amplification circuit 6. Next, in step Pf17, the value of the integer k is incremented by one, and in step Pf18, the magnitude relationship between the integer k and the integer 1 is determined. When the integer k is equal to or smaller than a predetermined integer, for example, 1, the process returns to step Pf13 to wait for the input of the voice again, and the integer k is set to 1
If it is larger, the process returns to the first step of the speech recognition process Pe. As described above, since an opportunity is provided to re-input a predetermined number of times (in the above example, once) when the level of the audio is inappropriate, when an erroneous audio is input, It is not necessary to return to the initial step of the voice recognition processing Pe and repeat the input from the beginning, and the inconvenience of repeating the same operation is reduced.

【0098】ステップPf15において音声データが正
常に取得された場合は、ステップPf19において取得
された音声データが変数Vdに代入される。変数Vd
は、後述する処理で入力される音声データとの一致を確
認するために使用される。
If the voice data is normally obtained in step Pf15, the voice data obtained in step Pf19 is substituted for the variable Vd. Variable Vd
Is used to confirm a match with audio data input in a process described later.

【0099】次いで、ステップPf20において、音声
データが認識されたことを通知する音声、例えば「ウー
ンモ」といった音声データがROM2から読み出されて
D/A変換され、音程変換回路5、音声増幅回路6を経
てスピーカー7より音声として発せられる。玩具が音声
の認識に応じて発する音声が変化(上記の例では「ウン
?」から「ウーンモ」に変化)するため、使用者は、玩
具が音声を認識していること、および音声の登録中の段
階を知ることができる。
Next, in step Pf20, a voice notifying that the voice data has been recognized, for example, voice data such as "Woonmo" is read from the ROM 2 and D / A converted, and the pitch conversion circuit 5, the voice amplification circuit 6 And is emitted from the speaker 7 as voice. Since the sound emitted by the toy in response to the recognition of the sound changes (in the above example, “un?” Changes to “woonmo”), the user must confirm that the toy has recognized the sound and that the sound is being registered. You can know the stage.

【0100】ステップPf21において、上述した待ち
時間パラメータが再びリセットされ、ステップPf22
において、時計動作機構12から所定の時間間隔ごとに
入力されるパルス信号S2に応じて、待ち時間パラメー
タをインクリメントする割り込み処理が開始される。ス
テップPf23においては、後述するステップPf28
において使用される整数kの値がゼロにリセットされ
る。
In step Pf21, the above-mentioned waiting time parameter is reset again, and in step Pf22
In, an interrupt process for incrementing the waiting time parameter is started according to the pulse signal S2 input from the clock operating mechanism 12 at predetermined time intervals. In Step Pf23, Step Pf28 described later
Is reset to zero.

【0101】ステップPf24において、マイク4から
入力される音声の有無が再び制御回路1によって判断さ
れ、音声信号が入力されていないと判断された場合、ス
テップはステップPf25に移行される。ステップPf
25では、上述した待ち時間パラメータの値によって示
されるステップPf22からの経過時間と所定の時間、
例えば10秒間とが比較されて、経過時間が10秒間よ
り短い場合、ステップPf24に再び処理が戻されて、
マイク4から入力される音声の有無が検出される。10
秒以内にステップPf24において音声が検出された場
合は、前記した待ち時間パラメータをインクリメントす
る割り込み処理が停止されてステップPf24からステ
ップPf26に処理が移行される。また、10秒以内に
ステップPf24において音声が検出されなかった場合
は、同様に待ち時間パラメータをインクリメントする割
り込み処理が停止された後、音声認識処理Peの冒頭の
ステップに処理が戻される。
In step Pf24, the control circuit 1 again determines the presence or absence of a sound input from the microphone 4, and when it is determined that no sound signal is input, the process proceeds to step Pf25. Step Pf
In 25, the elapsed time from step Pf22 indicated by the value of the waiting time parameter and a predetermined time,
For example, the elapsed time is compared with 10 seconds, and if the elapsed time is shorter than 10 seconds, the process returns to Step Pf24 again.
The presence or absence of a voice input from the microphone 4 is detected. 10
If a voice is detected in step Pf24 within seconds, the interrupt processing for incrementing the waiting time parameter is stopped, and the processing shifts from step Pf24 to step Pf26. If no voice is detected in step Pf24 within 10 seconds, the interrupt process for incrementing the waiting time parameter is similarly stopped, and the process returns to the first step of the voice recognition process Pe.

【0102】ステップPf26では、ステップPf24
で検出されたアナログの音声信号が、制御回路1でA/
D変換を施されてデジタル化された音声データに変換さ
れる。上述したステップPf7と同様の条件で入力され
た音声が不適当と判断された場合は、ステップPf27
に処理が移行されて、入力された音声のレベルが不適当
であることを知らせる音声、例えば「ブ〜」といった音
声データがROM2から読み出されてD/A変換され、
音程変換回路5、音声増幅回路6を経てスピーカー7よ
り音声として発せられる。次いで、ステップPf28に
おいて上述した整数kの値が1だけインクリメントさ
れ、ステップPf29でこの整数kと整数1の大小関係
が判断される。整数kが所定の整数、例えば1と等しい
か、または1より小さい場合は、ステップPf24に戻
って再び音声の入力を待つ処理が実行され、整数kが1
より大きい場合は、音声認識処理Peの冒頭のステップ
に処理が戻される。ステップPf12〜Pf18と同様
に、音声のレベルが不適当であった場合に所定の回数だ
け音声を再入力させる機会を設けているので、同じ操作
を反復させられる不便が軽減される。
At Step Pf26, Step Pf24
The analog audio signal detected by the control circuit 1
It is subjected to D conversion and converted to digitized audio data. If it is determined that the voice input under the same conditions as in step Pf7 described above is inappropriate, the process proceeds to step Pf27.
The sound is transmitted from the ROM 2 and is subjected to D / A conversion, for example, sound data indicating that the level of the inputted sound is inappropriate, for example, sound data such as "B".
The sound is emitted from a speaker 7 through a pitch conversion circuit 5 and a sound amplification circuit 6. Next, in step Pf28, the value of the integer k is incremented by one, and in step Pf29, the magnitude relationship between the integer k and the integer 1 is determined. When the integer k is equal to or smaller than a predetermined integer, for example, 1, the process returns to step Pf24 to wait for the input of the voice again, and the integer k is set to 1
If it is larger, the process returns to the first step of the speech recognition process Pe. As in steps Pf12 to Pf18, an opportunity is provided to re-enter the sound a predetermined number of times if the sound level is inappropriate, so that the inconvenience of repeating the same operation is reduced.

【0103】ステップPf30では、ステップPf19
で変数Vdに代入され音声データと、ステップPf26
で取得された音声データの特徴が制御回路1において比
較される。音声データの特徴は、例えば音声データをフ
ーリエ変換して得られた周波数スペクトルの振幅などを
用いて抽出され、所定の比較手順で比較される。互いの
音声データの特徴が一致しないと判断された場合は、上
述したステップPf27に処理が移行されて、入力され
た音声のレベルが不適当であることを知らせる音声が発
せられ、ステップPf27を通過した回数に応じ、音声
の再入力を許可されるか、あるいは音声認識処理Peの
冒頭のステップに処理が戻される。
At Step Pf30, Step Pf19
And the voice data substituted for the variable Vd at step Pf26
Are compared in the control circuit 1. The features of the audio data are extracted using, for example, the amplitude of a frequency spectrum obtained by performing Fourier transform on the audio data, and are compared by a predetermined comparison procedure. If it is determined that the characteristics of the audio data do not match each other, the process proceeds to step Pf27 described above, a voice is issued to notify that the level of the input voice is inappropriate, and the process goes through step Pf27. Depending on the number of times, the re-input of the voice is permitted, or the process is returned to the first step of the voice recognition process Pe.

【0104】変数Vdの音声データとステップPf26
で取得された音声データの特徴が一致していると判断さ
れた場合は、ステップPf26で取得された音声データ
をFLASH ROM3に記録する処理が行なわれる。
まず、ステップPf31において、FLASH ROM
3にデータを格納させる場所に係る登録ワード番号が取
得されて変数Jにその番号が代入され、次いでステップ
Pf32において登録ワード番号がJ番であるFLAS
H ROM3の格納エリアにステップPf26で取得さ
れた音声データが格納される。このとき、この音声デー
タの情報とともに、仮登録状態にセットされている仮登
録フラグも記録される。仮登録フラグは図10のステッ
プPe15において参照されるフラグである。仮登録フ
ラグがセットされている登録ワードは、このステップに
おいて仮登録ワードであると判断されて会話処理Phの
実行が許可されず、登録延長処理Pgが実行される。登
録延長処理において仮登録フラグがリセットされて正式
に登録された登録ワードだけが、会話処理Phの実行を
許可される仕組みになっている。
The voice data of the variable Vd and the step Pf26
If it is determined that the features of the audio data acquired in step Sf2 match, the process of recording the audio data acquired in step Pf26 in the FLASH ROM 3 is performed.
First, in step Pf31, the FLASH ROM
3, the registered word number relating to the location where the data is to be stored is obtained, and that number is substituted for the variable J. Then, in step Pf32, the FLAS whose registered word number is J
The audio data acquired in step Pf26 is stored in the storage area of the H ROM 3. At this time, the temporary registration flag set in the temporary registration state is also recorded together with the information of the audio data. The temporary registration flag is a flag referred to in step Pe15 of FIG. The registration word for which the temporary registration flag is set is determined to be a temporary registration word in this step, and the execution of the conversation process Ph is not permitted, and the registration extension process Pg is executed. In the registration extension process, only the registered word that is temporarily registered by resetting the temporary registration flag is permitted to execute the conversation process Ph.

【0105】引き続いて、登録延長処理Pgの動作を説
明する。図13および図14は、登録延長処理Pgにお
ける処理を説明するフローチャート図である。図13お
よび図14においてPg1〜Pg23はステップを示し
ている。また、図13のと図14のはステップの接
続関係を示している。
Subsequently, the operation of the registration extension process Pg will be described. FIGS. 13 and 14 are flowcharts for explaining the processing in the registration extension processing Pg. 13 and 14, Pg1 to Pg23 indicate steps. FIG. 13 and FIG. 14 show the connection relation of the steps.

【0106】上述したように、仮登録フラグがセットさ
れている登録ワードが認識された場合は、会話処理Ph
が実行されずに登録延長処理Pgが実行される。登録延
長処理Pgにおいては、仮登録フラグをリセットして登
録ワードを正式に登録させるまでに、音声を認識させる
処理を複数回反復させて、正式登録を延長させる処理が
行なわれる。音声を認識させる処理を反復させる回数
は、上述した信頼パラメータを加味した範囲でランダム
に決定される。
As described above, when the registered word in which the temporary registration flag is set is recognized, the conversation processing Ph
Is not executed, the registration extension process Pg is executed. In the registration extension process Pg, the process of recognizing the voice is repeated a plurality of times until the temporary registration flag is reset and the registration word is formally registered, and the process of extending the formal registration is performed. The number of repetitions of the process of recognizing the voice is randomly determined within a range in which the above-described reliability parameter is added.

【0107】会話処理Phは、使用者がマイク4に入力
した音声に応じて登録ワードや上述した自動音声登録処
理Pcをさまざまに組み合わせてランダムに発声させる
処理であり、使用者が玩具と音声のやり取りを交わす行
為を楽しむ上で欠かすことができない処理である。した
がって、登録延長処理Pgで会話処理Phの楽しみを先
延ばしさせることにより、玩具と会話することに対する
使用者の興味と期待感を掻き立てる効果を生み出すこと
ができる。また、規定の回数で言葉の登録が完了してし
まうと玩具が機械的に音声を記録している印象を使用者
に抱かせてしまい玩具の擬似生物としての趣向性を損な
ってしまうが、このように言葉の登録をランダムに延長
させる処理を設けることで生物が言葉を記憶する際の不
確定性を表現できるので、あたかも生物に言葉を覚えさ
せているような感覚を使用者に喚起させることができ
る。
The conversation process Ph is a process in which the registration word and the above-described automatic voice registration process Pc are variously combined in accordance with the voice input by the user to the microphone 4 to randomly utter the voice. This processing is indispensable for enjoying the act of exchanging exchanges. Therefore, by prolonging the enjoyment of the conversation process Ph by the registration extension process Pg, it is possible to produce an effect of inspiring the user's interest and expectation for talking with the toy. In addition, if the registration of words is completed in the specified number of times, the user will have the impression that the toy mechanically records the sound, and the taste of the toy as a simulated creature will be impaired. By providing a process to extend the registration of words at random like this, it is possible to express the uncertainty when the creature memorizes the words, so that the user is stimulated as if the creature is remembering the words Can be.

【0108】登録延長処理PgはステップPg1から処
理が開始される。まず、ステップPg2において上述し
た信頼パラメータの大きさが所定の整数値例えば整数4
5と大小関係を比較され、信頼パラメータが整数45よ
り小さい場合はステップPg3に処理が移行される。ス
テップPg3では例えば2〜4の整数がランダムに生成
されて変数mに代入される。また、信頼パラメータが整
数45より大きい場合はステップPg4に処理が移行さ
れる。ステップPg4でもステップPg2と同様に信頼
パラメータの大きさが所定の整数値例えば整数55と大
小関係を比較され、信頼パラメータが整数55より小さ
い場合はステップPg5に処理が移行される。ステップ
Pg5では、例えば1〜3の整数がランダムに生成され
て変数mに代入される。また、信頼パラメータが整数5
5より大きい場合はステップPg6に処理が移行され、
例えば0〜2の整数がランダムに生成されて変数mに代
入される。以上の処理によって、変数mには信頼パラメ
ータの大きさに応じた0から4の整数が代入される。
The registration extension process Pg is started from step Pg1. First, in step Pg2, the magnitude of the above-mentioned reliability parameter is a predetermined integer value,
If the confidence parameter is smaller than the integer 45, the process proceeds to step Pg3. In step Pg3, for example, integers of 2 to 4 are randomly generated and assigned to the variable m. If the confidence parameter is larger than the integer 45, the process proceeds to Step Pg4. Also at step Pg4, the magnitude of the reliability parameter is compared with a predetermined integer value, for example, an integer 55, in magnitude relation, as in step Pg2. If the reliability parameter is smaller than the integer 55, the process proceeds to step Pg5. In Step Pg5, for example, integers of 1 to 3 are randomly generated and assigned to the variable m. The trust parameter is an integer 5
If it is larger than 5, the process proceeds to Step Pg6,
For example, an integer of 0 to 2 is randomly generated and assigned to a variable m. Through the above processing, an integer from 0 to 4 according to the magnitude of the reliability parameter is substituted for the variable m.

【0109】変数mに整数が代入された後、ステップP
g7において整数mと整数0の一致が確認される。整数
mが整数0に等しい場合はステップPg21に処理が移
行され、登録ワード番号がJ番の登録ワードの仮登録フ
ラグがリセットされて正式登録される。また、整数mが
整数0に等しくない場合は、ステップPg8〜Pg18
の処理が実行される。このステップにより、作業者が正
式登録を完了させるためには、登録させたい音声を玩具
に認識させる作業を変数mに応じた回数だけ反復させな
くてはならない。
After an integer has been substituted for the variable m, step P
In g7, a match between the integer m and the integer 0 is confirmed. If the integer m is equal to the integer 0, the process proceeds to Step Pg21, where the provisional registration flag of the registered word having the registered word number J is reset and officially registered. On the other hand, when the integer m is not equal to the integer 0, steps Pg8 to Pg18
Is performed. In this step, in order for the operator to complete the formal registration, the operation of causing the toy to recognize the voice to be registered must be repeated a number of times according to the variable m.

【0110】ステップPg8において、後の処理で参照
する整数の変数kおよびiがゼロにリセットされる。次
いで、ステップPg9において待ち時間パラメータがリ
セットされ、ステップPg10において、時計動作機構
12から所定の時間間隔ごとに入力されるパルス信号S
2に応じて、待ち時間パラメータをインクリメントする
割り込み処理が開始される。待ち時間パラメータの値は
ステップPg9においてリセットされているため、この
値を参照することにより、ステップPg10からの経過
時間を計ることができる。
In step Pg8, integer variables k and i to be referred to in the subsequent processing are reset to zero. Next, in step Pg9, the waiting time parameter is reset, and in step Pg10, the pulse signal S input from the clock operating mechanism 12 at predetermined time intervals is set.
In response to 2, the interrupt processing for incrementing the waiting time parameter is started. Since the value of the waiting time parameter has been reset in step Pg9, the elapsed time from step Pg10 can be measured by referring to this value.

【0111】ステップPg11において、マイク4から
入力される音声の有無が制御回路1によって判断され
る。具体的には、マイク4から入力された音声信号のレ
ベルが所定のしきい値より小さいとき音声信号が入力さ
れていないと判断され、所定のしきい値より大きいとき
音声信号が入力されていると判断される。制御回路1に
おいて音声信号が入力されていないと判断された場合、
ステップPg12に処理が移行される。ステップPg1
2では、上述した待ち時間パラメータの値によって示さ
れるステップPg10からの経過時間と所定の時間、例
えば10秒間とが比較されて、経過時間が10秒間より
短い場合、ステップPg11に再び処理が戻されて、マ
イク4から入力される音声の有無が検出される。10秒
以内にステップPg11において音声が検出された場合
は、前記した待ち時間パラメータをインクリメントする
割り込み処理が停止されてステップPg11からステッ
プPg13に処理が移行される。また、10秒以内にス
テップPg11において音声が検出されなかった場合
は、同様に待ち時間パラメータをインクリメントする割
り込み処理が停止された後、ステップPg12から後述
するステップPg19に処理が移行される。
At step Pg11, the control circuit 1 determines whether or not there is a voice input from the microphone 4. Specifically, when the level of the audio signal input from the microphone 4 is smaller than a predetermined threshold, it is determined that the audio signal is not input, and when the level is higher than the predetermined threshold, the audio signal is input. Is determined. If the control circuit 1 determines that no audio signal is input,
The process is shifted to Step Pg12. Step Pg1
In 2, the elapsed time from step Pg10 indicated by the value of the waiting time parameter is compared with a predetermined time, for example, 10 seconds. If the elapsed time is shorter than 10 seconds, the process returns to step Pg11 again. Thus, the presence or absence of the voice input from the microphone 4 is detected. If a voice is detected in step Pg11 within 10 seconds, the interrupt processing for incrementing the waiting time parameter is stopped, and the processing shifts from step Pg11 to step Pg13. If no sound is detected in step Pg11 within 10 seconds, the interruption process for incrementing the waiting time parameter is similarly stopped, and the process proceeds from step Pg12 to step Pg19 described later.

【0112】ステップPg13では、ステップPg11
で検出されたアナログの音声信号が、制御回路1でA/
D変換を施されてデジタル化された音声データに変換さ
れる。この際、例えば、音声の大きさが制御回路1にお
いて定められている上限のしきい値より大きい場合や、
下限のしきい値より小さい場合、さらには音声の長さが
定められた上限のしきい値より長い場合には、ステップ
Pg14に処理が移行されて、入力された音声のレベル
が不適当であることを知らせる音声が発せられる。具体
的には、例えば「ブ〜」という音のデータがROM2か
ら読み出されてD/A変換され、音程変換回路5、音声
増幅回路6を経てスピーカー7より音声として発せられ
る。この後、後述するステップPg19に処理が移行さ
れる。
In the step Pg13, in the step Pg11
The analog audio signal detected by the control circuit 1
It is subjected to D conversion and converted to digitized audio data. At this time, for example, when the sound volume is larger than the upper limit threshold value determined in the control circuit 1,
If it is smaller than the lower threshold, or if the length of the voice is longer than the predetermined upper threshold, the process proceeds to step Pg14, and the level of the input voice is inappropriate. A voice is emitted to inform the user. More specifically, for example, data of the sound “B” is read from the ROM 2, D / A-converted, and transmitted as a sound from the speaker 7 through the pitch conversion circuit 5 and the sound amplification circuit 6. Thereafter, the process proceeds to Step Pg19 described later.

【0113】ステップPg13において音声データが正
常に取得された場合は、次のステップPg15におい
て、音声データが認識されたことを使用者に通知する音
声、例えば「ウーンニャ」という音声データがROM2
から読み出されてD/A変換され、音程変換回路5、音
声増幅回路6を経てスピーカー7より音声として発せら
れる。上述の例によれば、ステップPf2およびステッ
プPf9の「ウン?」からステップPf20の「ウーン
モ」、さらにステップPg15の「ウーンニャ」といっ
たように、音声を玩具に登録させる諸段階に玩具が発す
る音声が変化するので、使用者は玩具に対する音声の登
録段階を大まかに把握することができる。
If the voice data is normally obtained in step Pg13, in the next step Pg15, a voice for notifying the user that the voice data has been recognized, for example, voice data "Wunnya" is stored in the ROM 2.
, And D / A-converted, and is emitted as sound from a speaker 7 through a pitch conversion circuit 5 and a sound amplification circuit 6. According to the above-described example, the sound uttered by the toy at various stages of registering the sound to the toy, such as “Un?” In step Pf2 and “Un?” In step Pf9 to “Woonmo” in step Pf20, and further, “Wunnya” in step Pg15, Since it changes, the user can roughly grasp the registration stage of the sound for the toy.

【0114】次に、ステップPg16において上述した
変数iに整数1が加算され、ステップPg17において
変数mと変数iの一致が確認される。変数mと変数iが
一致していない場合はステップPg11に処理が戻され
て、再び音声の入力を待って音声データに変換する処理
が実行される。したがって、ステップPg2〜Pg6で
信頼パラメータを加味しながらランダムに決定された変
数mにより、ステップPg11からステップPg17の
処理を反復する回数が決定される。
Next, at step Pg16, the integer 1 is added to the above-described variable i, and at step Pg17, it is confirmed that the variables m and i match. If the variable m and the variable i do not match, the process returns to step Pg11, and the process of waiting for the input of a voice again and performing conversion to voice data is executed. Therefore, the number of times of repeating the processing of steps Pg11 to Pg17 is determined by the variable m randomly determined in consideration of the reliability parameters in steps Pg2 to Pg6.

【0115】ステップPg17において変数mと変数i
が一致していることが確認された場合は、ステップPg
18において、登録ワード番号がJ番の音声データとス
テップPg13で取得された音声データの特徴が一致し
ているか否か判定される。一致している場合はステップ
Pg21に処理が移行され、登録ワード番号がJ番の登
録ワードの仮登録フラグがリセットされてFLASH
ROM3の所定のアドレスに格納される。これにより、
登録ワードJ番の音声データは正式登録される。登録ワ
ード番号Jの音声データとステップPg13で取得され
た音声データの特徴が一致していない場合は、後述する
ステップPg19に処理が移行される。
In step Pg17, the variables m and i
If it is confirmed that they match, the step Pg
At 18, it is determined whether or not the features of the voice data whose registered word number is J and the voice data acquired in step Pg13 match. If they match, the process moves to step Pg21, where the temporary registration flag of the registered word whose registered word number is J is reset to FLASH.
It is stored at a predetermined address in the ROM 3. This allows
The audio data of the registration word J is officially registered. If the voice data of the registered word number J does not match the voice data acquired in step Pg13, the process proceeds to step Pg19 described later.

【0116】ステップPg19およびPg20では、音
声入力の待ち時間が所定時間をオーバーしてしまったエ
ラー(ステップPg12)や、入力された音声にレベル
が大きすぎる等の不具合があるエラー(ステップPg1
3)、あるいは登録させたい音声データと仮登録されて
いる音声データの特徴が一致しないエラー(ステップP
g18)が発生した場合において、変数kの値に整数1
が加えられる。そしてステップPg20において変数k
と所定の整数たとえば整数3の大小関係が判断されて、
変数kが整数3と同じか小さい場合はステップPg11
に処理が戻されて、音声データを取得する処理が反復さ
れる。また、変数kが整数3より大きい場合は、音声認
識処理Peの冒頭に処理が戻される。このように、上記
のようなエラーが発生した場合に音声認識処理Peの冒
頭までいきなり処理を戻してしまうのではなく、前述の
エラーが発生した回数が3回以内である場合はステップ
Pg11からの音声を取得する処理に戻される。したが
って、例えば間違ったイントネーションで音声を入力し
てしまった場合などであっても再び音声を入力させる機
会が設けられているので初めから音声の入力をやり直さ
なくても済み、同じ操作を反復させられる不便さが軽減
される。
At steps Pg19 and Pg20, an error (step Pg12) in which the waiting time for voice input exceeds a predetermined time or an error (step Pg1) in which the level of the input voice is too high.
3) or an error in which the characteristics of the audio data to be registered and the temporarily registered audio data do not match (step P
g18) occurs, the value of the variable k is set to the integer 1
Is added. Then, in step Pg20, the variable k
And the magnitude relationship of a predetermined integer, for example, the integer 3, is determined.
If the variable k is equal to or smaller than the integer 3, step Pg11
And the process of acquiring audio data is repeated. If the variable k is larger than the integer 3, the process returns to the beginning of the speech recognition process Pe. As described above, when the above-described error occurs, the process is not immediately returned to the beginning of the speech recognition process Pe. The process is returned to the process of acquiring audio. Therefore, for example, even when the voice is input with the wrong intonation, there is provided an opportunity to input the voice again, so that it is not necessary to re-input the voice from the beginning, and the same operation can be repeated. Inconvenience is reduced.

【0117】ステップPg21で仮登録フラグがリセッ
トされてFLASH ROM3に記録された後、ステッ
プPg22において音声が玩具に記憶されたことを表現
する音声が発せられる。たとえばステップP21で正式
登録させた音声データがD/A変換され、音程変換回路
5、音声増幅回路6を経てスピーカー7より音声として
発せられる。これにより、玩具が音声を記憶したことを
使用者に通知させることができる。
After the temporary registration flag is reset in step Pg21 and recorded in the FLASH ROM 3, in step Pg22, a sound expressing that the sound has been stored in the toy is emitted. For example, the audio data that has been officially registered in step P21 is D / A-converted, and is emitted as audio from the speaker 7 via the pitch conversion circuit 5 and the audio amplification circuit 6. This allows the user to be notified that the toy has memorized the sound.

【0118】以上説明した音声認識処理Peによれば、
仮登録処理が完了するまでに音声の入力を最低4回行わ
なくてはならない。このうち、ステップPf5による音
声の入力操作は、誤って音声が仮登録されてしまいFL
ASH ROM3の記憶領域を圧迫してしまう確率を減
らすための処理手順であり、この処理を省略させても仮
登録の動作は可能である。また、ステップPf13によ
る音声の入力は、ステップPf30で音声データの一致
を確認するための音声を入力させるための処理手順であ
るが、例えば前に述べたようにステップPf5の処理を
省略した場合において、もしステップPe8で変数Vd
に代入した音声データをステップPf30で参照できる
のであれば、ステップPf13による音声の入力操作も
省略できる。すなわち、図11および図12におけるス
テップPf1からステップPf20までの処理を省略さ
せること可能である。
According to the speech recognition processing Pe described above,
Until the temporary registration process is completed, voice input must be performed at least four times. Of these, in the voice input operation in step Pf5, the voice is tentatively registered by mistake and FL
This is a processing procedure for reducing the probability that the storage area of the ASH ROM 3 will be squeezed. Even if this processing is omitted, the operation of temporary registration is possible. The input of the voice in step Pf13 is a processing procedure for inputting a voice for confirming the match of the voice data in step Pf30. For example, as described above, when the process of step Pf5 is omitted, , If in step Pe8 the variable Vd
If the voice data substituted into the data can be referred to in step Pf30, the voice input operation in step Pf13 can also be omitted. That is, the processing from step Pf1 to step Pf20 in FIGS. 11 and 12 can be omitted.

【0119】また、仮登録処理の変形として、例えばス
テップPf9の処理の後にステップPf3からステップ
Pf8の処理を繰り返し、最後にステップPf31、P
f32を行うことも可能である。すなわち、使用者が繰
り返し同じ音声を入力させることによって使用者が音声
を登録しようとしている意志を確認し、音声を登録させ
る処理である。これによれば、各音声入力における音声
の一致が確認されないので、異なる音声を連続して入力
された場合最後に入力された音声を登録してしまう可能
性もあるが、処理を単純にできるのでメモリの容量を節
約できる。
As a modification of the temporary registration process, for example, after the process of step Pf9, the processes of steps Pf3 to Pf8 are repeated, and finally, the processes of steps Pf31 and Pf31 are repeated.
It is also possible to perform f32. That is, the user repeatedly inputs the same voice, confirms the intention of the user to register the voice, and registers the voice. According to this, since the matching of the voices in each voice input is not confirmed, there is a possibility that if different voices are continuously input, the last input voice may be registered, but the processing can be simplified. Saves memory space.

【0120】また、ステップPf19からステップPf
30までを複数回繰り返し、最後にステップPf31、
Pf32を行うことも可能である。すなわち、音声入力
を行なう前に前回の音声データを変数Vdに保存させて
から次の音声データを取得し、その後変数Vdと取得し
た音声データの一致を検出して、一致しない場合に処理
を初期のステップに元に戻す処理である。前回入力した
音声と今回入力した音声が異なっている場合を調べるこ
とができるので、この方法によっても、使用者が玩具に
音声を登録させる意志を確認することができる。
Further, from step Pf19 to step Pf
Step 30 is repeated a plurality of times, and finally, Step Pf31,
It is also possible to perform Pf32. That is, before performing voice input, the previous voice data is stored in a variable Vd, and then the next voice data is obtained. After that, a match between the variable Vd and the obtained voice data is detected. This is the process of returning to the step. Since it is possible to check the case where the voice input last time is different from the voice input this time, this method can also confirm the user's intention to register the voice in the toy.

【0121】また、ステップPf19からステップPf
30までを複数回繰り返す前述した変形例において、ス
テップPf30を、取得した音声データとFLASH
ROM3の登録ワードの一致を検索するステップに変更
させることもできる。この場合、取得した音声データと
一致するデータがFLASH ROM3に記憶されてい
る場合にステップPf27に処理を移行させる。この処
理によれば既に登録されている音声を使用者が入力した
ことが分かるので、これによっても使用者の意志を確認
することができる。
Further, from step Pf19 to step Pf
30 is repeated a plurality of times in the above-described modified example, the step Pf30 is performed by using the acquired audio data and the FLASH
The step may be changed to a step of searching for a match of the registered word in the ROM 3. In this case, if data matching the acquired audio data is stored in the FLASH ROM 3, the process proceeds to Step Pf27. According to this processing, since it is known that the user has input a voice that has already been registered, the user's intention can also be confirmed.

【0122】登録延長処理における処理も、使用者に同
じ言葉を入力させて玩具に言葉を覚えさせることを目的
としている処理とという意味では仮登録処理と同じなの
で、以上説明した仮登録処理の変形は、登録延長処理に
も応用可能である。また、これらを任意に組み合わせた
処理も可能である。
The processing in the registration extension processing is the same as the temporary registration processing in the sense that the processing is intended to allow the user to input the same words and to make the toy memorize the words. Can also be applied to registration extension processing. Further, processing in which these are arbitrarily combined is also possible.

【0123】最後に、アラームモードM13およびコミ
ュニケーションモードM14について、より詳しい説明
を行う。図16および図17は、アラームモードにおけ
る処理(アラーム処理)を説明するフローチャート図で
ある。図16および図17においてPj1〜Pj21は
ステップを示している。また、図16のと図17の
、図16のと図17のはステップの接続関係を示
している。
Finally, the alarm mode M13 and the communication mode M14 will be described in more detail. FIG. 16 and FIG. 17 are flowcharts for explaining processing in the alarm mode (alarm processing). 16 and 17, Pj1 to Pj21 indicate steps. 16 and FIG. 17, and FIG. 16 and FIG. 17 show connection relations of steps.

【0124】アラーム処理の概要を述べると、まず、所
定のアラーム設定時間になると、たとえば最初の10秒
間は音声による時報がなされ、つぎの10秒間で音声入
力待ち動作がなされる。このとき音声入力があると、登
録ワードがたとえばランダムに発声されるし、登録ワー
ドがない場合は、ROM2内の所定の音声が出力され
る。この時報と音声入力待ち動作が所定時間、たとえば
2分間に十数回繰り返される。この時報の間欠動作の
後、スヌーズ機能と称されるアラーム一時停止機能が働
いて所定時間、たとえば4分後に、再び音声による時報
が鳴り出し、同様にして時報の間欠動作とスヌーズが繰
り返される。
[0124] The outline of the alarm processing is as follows. First, when a predetermined alarm set time is reached, for example, a time signal by voice is made for the first 10 seconds, and a voice input waiting operation is performed in the next 10 seconds. At this time, if there is a voice input, the registration word is uttered at random, for example, and if there is no registration word, a predetermined voice in the ROM 2 is output. The time signal and the voice input waiting operation are repeated ten or more times in a predetermined time, for example, two minutes. After the intermittent operation of the time signal, an alarm temporary stop function called a snooze function is activated, and after a predetermined time, for example, four minutes, a time signal is sounded again by voice. Similarly, the intermittent operation and the snooze operation of the time signal are repeated.

【0125】まず、ステップPj1でアラームスイッチ
10がONされると、アラーム処理が開始される。ステ
ップPj2においてアラーム設定時間が監視され、時間
になると、ステップPj3において、アラーム設定時間
からの経過時間(以下、設定経過時間)、音声出力時間
がそれぞれリセットされた後、両時間とも計時が開始さ
れる。
First, when the alarm switch 10 is turned on in step Pj1, alarm processing is started. In step Pj2, the alarm set time is monitored. When the time comes, in step Pj3, the elapsed time from the alarm set time (hereinafter referred to as “set elapsed time”) and the sound output time are reset, and then both the times are started. You.

【0126】つぎのステップPj4では、制御回路1に
より登録ワードの有無が判断され、登録ワードがFLA
SH ROM3内にない場合は、ステップPj5〜ステ
ップPj8の処理がなされる。まず、ステップPj5に
おいて、ROM2内から怒り声または笑い声の音声デー
タが呼び出され、制御回路1内でD/A変換された後、
音程変換回路5および音声増幅回路6を経て、スピーカ
7から音声として出力される。怒り声としては「ブ〜」
または「ブルルルルル」が出力され、笑い声としては
「ヒヒャハハ」または「ウフフ」が出力される。その
後、ステップPj6で、ステップPj3を起点に計測さ
れている音声出力時間が所定時間、たとえば10秒を越
えているか否かが判断される。音声出力時間が10秒以
下の場合は、10秒を越えるまでステップPj5が繰り
返されて連続した怒り声または笑い声が出力される。音
声出力時間が10秒を越えると、ステップPj7におい
て、設定経過時間が2分を越えたか否かが判断される。
設定経過時間が2分以下の場合は、ステップPj8にお
いて、所定時間、たとえば10秒間待機時間が発生した
後、音声主力時間をリセットしてステップPj5の前に
処理が戻される。設定経過時間が2分を越えた場合は、
処理がステップPj2の前に戻されることにより、約1
2時間後または約24時間後に再び設定時間となったこ
とが判定されるまでアラーム処理としては何もされない
状態になる。なお、登録ワードがある場合でも、玩具が
前記した病気モードM22または仮死モードM23にあ
るときは、上記したと同様な手順で、ROM2内のたと
えば怒り声「ブルルルルル」または笑い声「ヒヒャハ
ハ」などを出力する。
In the next step Pj4, the control circuit 1 determines whether or not there is a registered word.
If it is not in the SH ROM 3, the processing of steps Pj5 to Pj8 is performed. First, in step Pj5, anger or laughter voice data is called from the ROM 2 and D / A converted in the control circuit 1.
The sound is output from the speaker 7 through the pitch conversion circuit 5 and the sound amplification circuit 6 as sound. "Boo" as an angry voice
Alternatively, "Blurrururu" is output, and "Hihyah" or "Uhfu" is output as laughter. Thereafter, in step Pj6, it is determined whether or not the audio output time measured starting from step Pj3 exceeds a predetermined time, for example, 10 seconds. If the audio output time is 10 seconds or less, step Pj5 is repeated until the time exceeds 10 seconds, and a continuous anger or laughter is output. If the audio output time exceeds 10 seconds, it is determined in step Pj7 whether the set elapsed time has exceeded 2 minutes.
If the set elapsed time is not more than 2 minutes, in step Pj8, after a predetermined time, for example, a waiting time of 10 seconds, a main voice time is reset, and the process is returned to before step Pj5. If the set elapsed time exceeds 2 minutes,
By returning the processing before step Pj2, about 1
No alarm processing is performed until it is determined that the set time has been reached again after 2 hours or about 24 hours. Even when there is a registered word, when the toy is in the sick mode M22 or the asphyxia mode M23 described above, for example, an anger voice “burururururu” or a laughter voice “hihihaha” or the like is output from the ROM 2 in the same procedure as described above. I do.

【0127】ステップPj4で登録ワードがあると判断
された場合は、ステップPj9において、制御回路1に
より登録ワードの選択がなされる。この登録ワードの選
択方法には種々の態様があり、たとえば、発生させた乱
数を基に登録ワードをランダムに選択する、前述した記
憶度パラメータが大きい順に選択する、「起きろ」「朝
だよ〜」などの特定の登録ワードの中から選択する、最
も最近に選択された登録ワードとの関連度パラメータが
大きい順に選択するなどの何れのパターンでもよいし、
制御回路1がパターンを適宜変更することにより変化を
持たせてもよい。続いて、ステップPj10において、
選択した登録ワードをFLASH ROM3から読み出
して所定の手順でスピーカ7から出力させる。なお、こ
のステップPj9およびステップPj10を、後述する
ように処理が繰り返し通過することとなるが、その場
合、ステップPj9のワード選択では、関連度パラメー
タの設定の仕方によっては、処理が何回も通過すること
により意味のある文章、歌などを再生することができ
る。
If it is determined in step Pj4 that there is a registered word, the control circuit 1 selects a registered word in step Pj9. There are various modes for the method of selecting a registered word. For example, a registered word is randomly selected based on a generated random number, the above-mentioned memory parameter is selected in descending order, "get up", "morning!" Or any pattern, such as selecting from a specific registered word such as, or selecting a parameter in association with the most recently selected registered word in a descending order.
The control circuit 1 may change the pattern by appropriately changing the pattern. Subsequently, in Step Pj10,
The selected registration word is read from the FLASH ROM 3 and output from the speaker 7 in a predetermined procedure. Note that the processing repeatedly passes through Steps Pj9 and Pj10 as described later. In this case, in the word selection in Step Pj9, depending on how the relevance parameter is set, the processing may be repeated many times. By doing so, meaningful sentences and songs can be reproduced.

【0128】つぎのステップPj11では、頭部スイッ
チ8が押されたかが判断され、頭部スイッチ8が押され
たと判断されると、後述するステップPj19の前に処
理がスキップする。頭部スイッチ8が押されていないと
判断されると、つぎのステップPj12において、ステ
ップPj3を起点に計測されている音声出力時間が所定
時間、たとえば10秒を越えているか否かが判断され
る。音声出力時間が10秒以下の場合は、10秒を越え
るまでステップPj9およびステップPj10が繰り返
されて連続した登録ワードが出力される。音声出力時間
が10秒を越えると、つぎのステップPj13におい
て、入力待ち時間パラメータがリセットされ、入力待ち
時間の計時が開始される。
In the next step Pj11, it is determined whether or not the head switch 8 has been pressed. If it is determined that the head switch 8 has been pressed, the process is skipped before step Pj19 described later. If it is determined that the head switch 8 has not been pressed, in the next step Pj12, it is determined whether or not the audio output time measured starting from the step Pj3 exceeds a predetermined time, for example, 10 seconds. . If the audio output time is 10 seconds or less, steps Pj9 and Pj10 are repeated until the time exceeds 10 seconds, and a continuous registered word is output. When the audio output time exceeds 10 seconds, in the next step Pj13, the input waiting time parameter is reset, and the counting of the input waiting time is started.

【0129】つぎのステップPj14において、マイク
4から音声が入力される音声が制御回路1によって判断
される。具体的には、マイク4から入力された音声信号
のレベルが所定のしきい値より小さいとき音声信号が入
力されていないと判断され、所定のしきい値より大きい
とき音声信号が入力されていると判断される。制御回路
1において音声信号が入力されていないと判断された場
合、ステップPj15に処理が移行される。ステップP
j15では、上述した待ち時間パラメータの値によって
示されるステップPj13からの経過時間と所定の時
間、例えば10秒間とが比較されて、経過時間が10秒
間より短い場合、ステップPj14に再び処理が戻され
て、マイク4から入力される音声の有無が検出される。
10秒以内にステップPj14において音声が検出され
た場合は、前記した待ち時間パラメータをインクリメン
トする割り込み処理が停止されてステップPj14から
ステップPg17に処理が移行される。また、10秒以
内にステップPj14において音声が検出されなかった
場合は、同様に待ち時間パラメータをインクリメントす
る割り込み処理が停止された後、ステップPg16にお
いて、設定経過時間が2分より長いか否かが判断され
る。設定経過時間が2分より長い場合は、処理がステッ
プPj2の前に戻されて、約12時間後または約24時
間後に再び設定時間となったことが判定されるまでアラ
ーム処理としては何もされない状態になる。設定経過時
間が2分以下の場合は、処理がステップPj9の前に戻
されて、再び、登録ワードの選択と発声から処理が繰り
返される。
In the next step Pj14, the control circuit 1 determines the sound to be inputted from the microphone 4. Specifically, when the level of the audio signal input from the microphone 4 is smaller than a predetermined threshold, it is determined that the audio signal is not input, and when the level is higher than the predetermined threshold, the audio signal is input. Is determined. If the control circuit 1 determines that no audio signal has been input, the process proceeds to step Pj15. Step P
At j15, the elapsed time from step Pj13 indicated by the value of the waiting time parameter is compared with a predetermined time, for example, 10 seconds. If the elapsed time is shorter than 10 seconds, the process returns to step Pj14 again. Thus, the presence or absence of the voice input from the microphone 4 is detected.
If a voice is detected in Step Pj14 within 10 seconds, the interrupt process for incrementing the waiting time parameter is stopped, and the process proceeds from Step Pj14 to Step Pg17. If no sound is detected in step Pj14 within 10 seconds, the interrupt process for incrementing the waiting time parameter is similarly stopped, and in step Pg16, it is determined whether the set elapsed time is longer than 2 minutes. Is determined. If the set elapsed time is longer than 2 minutes, the process is returned to before step Pj2, and nothing is performed as an alarm process until it is determined that the set time has been reached again after about 12 hours or about 24 hours. State. If the set elapsed time is 2 minutes or less, the process is returned to before the step Pj9, and the process is repeated again from the selection of the registered word and the utterance.

【0130】ステップPj17では、ステップPj14
で検出されたアナログの音声信号が、制御回路1でA/
D変換を施されてデジタル化された音声データに変換さ
れる。この際、例えば、音声の大きさが制御回路1にお
いて定められている上限のしきい値より大きい場合や、
下限のしきい値より小さい場合、さらには音声の長さが
定められた上限のしきい値より長い場合には、ステップ
Pj9に処理が移行されて、再び、登録ワードの選択と
発声から処理が繰り返される。ステップPj17で適正
に音声データが取得された場合は、つぎのステップPj
18において、取得された音声データを基に登録ワード
が、所定の手順でスピーカ7から音声として出力された
後、スヌーズに入る。
In step Pj17, step Pj14
The analog audio signal detected by the control circuit 1
It is subjected to D conversion and converted to digitized audio data. At this time, for example, when the sound volume is larger than the upper limit threshold value determined in the control circuit 1,
If it is smaller than the lower threshold, or if the length of the voice is longer than the predetermined upper threshold, the process proceeds to Step Pj9, and the process is again performed from the selection and utterance of the registered word. Repeated. If the audio data is properly acquired in step Pj17, the next step Pj
At 18, the registered word is output as a sound from the speaker 7 according to a predetermined procedure based on the acquired sound data, and then the snooze operation is started.

【0131】すなわち、ステップPj19において、ス
ヌーズ時間を示すパラメータがリセットされた後、スヌ
ーズ時間パラメータをインクリメントする割り込み処理
が開始される。つぎのステップPj20において、ステ
ップPj19から開始されたスヌーズ時間パラメータを
参照して、スヌーズ設定時間、たとえば4分が経過した
か否かが監視され、4分が経過したと判断されたところ
で処理がステップPj21に移行する。ステップPj2
1では、ステップPj3からの設定経過時間が所定の目
安時間、たとえば30分を越えたか否かが判断される。
設定経過時間が目安時間以下の場合、処理がステップP
j9に戻され、登録ワードの選択と発声から処理が繰り
返される。設定経過時間が目安時間を越えた場合は、処
理がステップPj2の前に戻されて、約12時間後また
は約24時間後に再び設定時間となったことが判定され
るまでアラーム処理としては何もされない状態になる。
That is, in step Pj19, after the parameter indicating the snooze time is reset, an interrupt process for incrementing the snooze time parameter is started. In the next step Pj20, it is monitored whether or not the snooze set time, for example, 4 minutes, has elapsed with reference to the snooze time parameter started from step Pj19. Move to Pj21. Step Pj2
In step 1, it is determined whether the set elapsed time from step Pj3 has exceeded a predetermined reference time, for example, 30 minutes.
If the set elapsed time is less than the reference time, the process proceeds to step P
The process returns to j9, and the process is repeated from the selection and utterance of the registered word. If the set elapsed time exceeds the reference time, the processing is returned to before step Pj2, and no alarm processing is performed until it is determined that the set time has been reached again after about 12 hours or about 24 hours. It will not be in a state.

【0132】なお、図16では処理終了のステップが記
述されていないが、これについては、処理がどの段階に
進んでいても一旦、アラームスイッチ10が切られる
と、直ぐに、処理を抜けてアラーム処理を終了させる。
また、どの段階に処理が進んでいてもアラームスイッチ
10のOFFは常時受け付けておいて、たとえば、音声
出力ステップPj5またはPj10の直前にアラームス
イッチのOFFを判断させて処理を強制終了させること
でもよい。この場合、アラームスイッチ10がOFFさ
れると直ぐに処理が終了する前者の場合と、見かけ上は
同じになる。
Note that FIG. 16 does not describe the step of terminating the process. However, no matter what stage the process is in, once the alarm switch 10 is turned off, the process immediately exits the process and the alarm process is terminated. To end.
Regardless of the stage in which the processing is proceeding, the turning off of the alarm switch 10 is always accepted, and for example, the turning off of the alarm switch may be determined immediately before the sound output step Pj5 or Pj10 to forcibly terminate the processing. . In this case, the process is apparently the same as the former case in which the processing ends immediately when the alarm switch 10 is turned off.

【0133】つぎに、コミュニケーションモード中の処
理(以下、玩具間会話処理)を説明する。図18は、玩
具間会話処理を説明するフローチャート図である。図1
8においてPk1〜Pk7はステップを示している。
Next, processing in the communication mode (hereinafter, toy conversation processing) will be described. FIG. 18 is a flowchart for explaining the conversation processing between toys. FIG.
In FIG. 8, Pk1 to Pk7 indicate steps.

【0134】まず、ステップPk1で玩具同士が向き合
わされることにより、前述したようにリードスイッチ9
1が導通してコミュニケーションスイッチ9がONする
と、当該玩具間会話処理が開始される。コミュニケーシ
ョンモードM14は、アラームモードM13の次に優先
度が高く、起床モードM11内の各種処理中、あるいは
就寝モードM12中でもコミュニケーションスイッチ9
がONすると、強制的にコミュニケーションモードM1
4に移行する。続くステップPk2では、コミュニケー
ションモード時間のパラメータがリセットされた後、計
時(パラメータのインクリメント)が開始される。ま
た、つぎのステップPk3において、制御回路1により
FLASH ROM3内の登録ワードの有無が判定され
る。
First, at step Pk1, the toys are faced to each other, and as described above, the reed switch 9 is turned on.
When the switch 1 is turned on and the communication switch 9 is turned on, the conversation process between the toys is started. The communication mode M14 has the second highest priority after the alarm mode M13, and is in the middle of various processes in the wake-up mode M11 or during the sleep mode M12.
Is ON, the communication mode M1 is forcibly
Move to 4. In the following step Pk2, after the communication mode time parameter is reset, time measurement (increment of the parameter) is started. In the next step Pk3, the control circuit 1 determines whether or not there is a registered word in the flash ROM 3.

【0135】ステップPk3で登録ワードがあると判断
された場合は、ステップPk4において、制御回路1に
より登録ワードを含む音声または音の出力パターンが選
択される。具体的に、複数の出力パターンがROM2内
に予め格納されており、制御回路1が乱数を生成し、こ
の乱数に基づいて複数の出力パターンからランダムに出
力パターンを選択する。出力パターン数は任意であり、
また、ランダムに選択される確率に軽重(重み付け)が
付けられていてもよい。本例では出力パターンは以下に
述べる5パターンが存在し、ランダムに選択される確率
は同等、すなわち20%ずつであるとして、以下の説明
を進める。本例のように選択される確率に重み付けをし
ない場合はランダム選択となり、何らかの重み付けをす
る場合は疑似ランダム選択となる。
If it is determined in step Pk3 that there is a registered word, in step Pk4, the control circuit 1 selects a voice or sound output pattern including the registered word. Specifically, a plurality of output patterns are stored in the ROM 2 in advance, and the control circuit 1 generates a random number, and randomly selects an output pattern from the plurality of output patterns based on the random number. The number of output patterns is arbitrary,
Also, the probability of being selected at random may be given a light weight. In the present example, the following description will proceed assuming that the following five output patterns exist and the probability of random selection is equal, that is, 20% each. When no weight is assigned to the selection probability as in this example, random selection is performed, and when some weight is weighted, pseudo random selection is performed.

【0136】第1および第2の出力パターンは、登録ワ
ードの出力パターンである。第1の出力パターンでは、
つぎの実際の発声時に乱数をランダムまたは疑似ランダ
ムに生成し、その乱数を基に異なる登録ワードを抽出
し、抽出した順に異なる登録ワードを所定間隔、たとえ
ば5秒おきに出力させる。たとえば、「ワードA」→
(5秒の間)→「ワードB」→(5秒の間)→「ワード
C」…という具合である。第2の出力パターンでは、つ
ぎの実際の発声時に乱数をランダムまたは疑似ランダム
に生成し、その乱数を基に異なる登録ワードを1つ抽出
し、抽出した登録ワードを所定間隔、たとえば5秒おき
に繰り返し出力させる。たとえば、(5秒の間)→「ワ
ードA」→(5秒の間)→「ワードA」→(5秒の間)
…という具合である。
The first and second output patterns are registered word output patterns. In the first output pattern,
At the time of the next actual utterance, a random number is generated randomly or pseudo-randomly, different registered words are extracted based on the random number, and different registered words are output at predetermined intervals, for example, every 5 seconds in the order of extraction. For example, "word A" →
(For 5 seconds) → “word B” → (for 5 seconds) → “word C”... In the second output pattern, a random number is randomly or pseudo-randomly generated at the next actual utterance, one different registered word is extracted based on the random number, and the extracted registered words are extracted at predetermined intervals, for example, every 5 seconds. Output repeatedly. For example, (for 5 seconds) → “Word A” → (for 5 seconds) → “Word A” → (for 5 seconds)
... and so on.

【0137】第3および第4の出力パターンは、ROM
2に予め内蔵したワード、たとえば合成音声ワードの出
力パターンである。第3の出力パターンでは、ランダム
風に予め出力手順が決められた合成音声ワードを連続し
て出力させる。たとえば、連続キス音を表現した場合、
「ウ〜ンチュ」→「チュチュ」→「ウ〜ン」→「ウ〜ン
チュ」→「チュチュ」→「ウ〜ン」…という具合であ
る。また、全体で疑似会話または動作を表現した連続音
または連続音声を複数有し、実際の出力時にランダムま
たは疑似ランダムに選択し、出力させることも可能であ
る。第4の出力パターンでは、たとえば1つの合成音声
ワードを連続して出力することで、全体で疑似会話また
は動作を表現する。たとえば、泣き声を表現した場合、
「ウェ〜ン」→「ウェ〜ン」→「ウェ〜ン」…という具
合である。また、全体で疑似会話または動作を表現した
連続音または連続音声を複数有し、実際の出力時にラン
ダムまたは疑似ランダムに1種類選択し、連続して出力
させることも可能である。
The third and fourth output patterns are stored in ROM
2 is an output pattern of a word built in advance, for example, a synthesized speech word. In the third output pattern, synthesized speech words whose output procedure is determined in advance in a random manner are continuously output. For example, when expressing a continuous kiss sound,
"U ~ nchu" → "Tutu" → "U ~ n" → "U ~ nchu" → "Tutu" → "U ~ n" ... It is also possible to have a plurality of continuous sounds or continuous voices expressing the pseudo-conversation or action as a whole, and to select and output them at random or pseudo-randomly at the time of actual output. In the fourth output pattern, pseudo-speech or action is expressed as a whole by, for example, continuously outputting one synthesized speech word. For example, if you express a cry,
"Wah" → "Wah" → "Wah", and so on. It is also possible to have a plurality of continuous sounds or continuous voices expressing a pseudo-conversation or an operation as a whole, and to select one type at random or pseudo-random at the time of actual output and to output continuously.

【0138】第5の出力パターンでは、前述した自動音
声登録処理を玩具間会話に応用したものであり、相手方
が喋っている音または音声を自動的に取り込み、所定間
隔(たとえば5秒)後に反芻して出力する。たとえば、
(ワードAの自動登録)→「(再生)」、(ワードBの
自動登録)→「(再生)」…という具合である。
In the fifth output pattern, the automatic voice registration processing described above is applied to a conversation between toys, and the sound or voice spoken by the other party is automatically captured, and after a predetermined interval (for example, 5 seconds), rumination is performed. And output. For example,
(Automatic registration of word A) → “(playback)”, (automatic registration of word B) → “(playback)”, and so on.

【0139】つぎのステップPk5で、上記出力パター
ンに従った音声出力を行う。具体的には、制御回路1
が、ROM2から選択し読み出した出力パターンに従っ
て、FLASH ROM3またはROM2から読み出し
たワードをD/A変換し、音程変換回路5,音声増幅回
路6を経てスピーカ7から出力させる。このとき、第5
の出力パターンでは、音程変換回路5において入力音声
の音程に応じて出力音程が変化する場合、この再生時で
は音程変換回路5による処理をスキップするとよい。ワ
ードの自動登録と再生を繰り返している間に、音程がど
んどん変化していく不都合を回避するためである。所定
の時間経過が必要な場合は、たとえば図16におけるス
テップPj13およびPj15と同様な処理により5秒
の待ち時間を設け、再び、次のワード出力を繰り返す。
In the next step Pk5, audio output is performed according to the output pattern. Specifically, the control circuit 1
According to the output pattern selected and read from the ROM 2, the word read from the FLASH ROM 3 or the ROM 2 is D / A converted and output from the speaker 7 via the pitch conversion circuit 5 and the audio amplification circuit 6. At this time, the fifth
When the output pitch changes in accordance with the pitch of the input voice in the pitch conversion circuit 5, the processing by the pitch conversion circuit 5 may be skipped during this reproduction. This is to avoid the inconvenience that the pitch changes rapidly during the automatic registration and reproduction of words. If a predetermined time has elapsed, for example, a waiting time of 5 seconds is provided by the same processing as in steps Pj13 and Pj15 in FIG. 16, and the next word output is repeated again.

【0140】この処理の終了は、ステップPk2を起点
とする計時動作において、所定時間、たとえば1分が経
過したときは、どの処理にある場合でも強制終了させ
る。ステップPk5が終了して、未だ終了時間に達して
いないときは、処理をステップPk4から繰り返す。
This processing is forcibly terminated when a predetermined time, for example, one minute has elapsed in the timekeeping operation starting from step Pk2, regardless of which processing is in progress. If Step Pk5 has ended and the end time has not yet been reached, the process is repeated from Step Pk4.

【0141】ステップPk3で登録ワードがないと判断
された場合は、ステップPk6において、ステップPk
4と同様にして、制御回路1により登録ワードを含む音
声または音の出力パターンが選択される。ここでも出力
パターンは以下に述べる第6〜第10の5パターンが存
在し、ランダムに選択とする。
If it is determined in step Pk3 that there is no registered word, then in step Pk6, step Pk
Similarly to 4, the control circuit 1 selects a voice or sound output pattern including the registered word. Here again, there are the following six output patterns to the tenth output patterns, which are randomly selected.

【0142】第6,第7,第8の出力パターンは、それ
ぞれ前記第3,第4,第5の出力パターンと同じとす
る。第9の出力パターンでは、1つの合成音声ワードを
連続して出力することは前記第4の出力パターンと同じ
であるが、ここでは、笑い声を表現する。たとえば、
「ヒヒャハハ」→「ヒヒャハハ」→「ヒヒャハハ」…と
いう具合である。また、第10の出力パターンでは、1
つの合成音声ワードを連続して出力することは前記第
4,第9の出力パターンと同じであるが、ここでは、怒
り声を表現する。たとえば、「ブルルルルル」→「ブル
ルルルル」→「ブルルルルル」…という具合である。な
お、この第9および第10の出力パターンにおいても、
全体で疑似会話または動作を表現した連続音または連続
音声を複数有し、実際の出力時にランダムまたは疑似ラ
ンダムに1種類選択し、連続して出力させることも可能
である。
It is assumed that the sixth, seventh, and eighth output patterns are the same as the third, fourth, and fifth output patterns, respectively. In the ninth output pattern, continuously outputting one synthesized speech word is the same as the fourth output pattern, but here, a laughing voice is expressed. For example,
"Hihyah" → "Hihyah" → "Hihyah" ... In the tenth output pattern, 1
Outputting one synthesized speech word continuously is the same as the fourth and ninth output patterns, but here expresses anger. For example, “Blururururu” → “Bururulururu” → “Bururulururu”... In the ninth and tenth output patterns,
It is also possible to have a plurality of continuous sounds or continuous voices expressing the pseudo-conversation or action as a whole, and to select one type at random or pseudo-random at the time of actual output and to output continuously.

【0143】つぎのステップPk7で、ROM2のみか
らワードを読み出す以外は、上記ステップPk5と同様
にして音声出力を行う。このとき、第8の出力パターン
では、第5の出力パターンの場合と同じ理由により、再
生時では音程変換回路5による処理をスキップするとよ
い。
At the next step Pk7, audio is output in the same manner as at the above-mentioned step Pk5 except that words are read only from the ROM 2. At this time, in the eighth output pattern, for the same reason as in the case of the fifth output pattern, the processing by the pitch conversion circuit 5 may be skipped during reproduction.

【0144】この処理の終了は、ステップPk2を起点
とする計時動作において、所定時間、たとえば1分が経
過したときは、どの処理にある場合でも強制終了させ
る。ステップPk5が終了して、未だ終了時間に達して
いないときは、処理をステップPk4から繰り返す。
In the timing operation starting from step Pk2, when a predetermined time, for example, one minute has elapsed, the process is forcibly ended regardless of the process. If Step Pk5 has ended and the end time has not yet been reached, the process is repeated from Step Pk4.

【0145】なお、前述したように、このコミュニケー
ションモードにおいても頭部スイッチ8の操作は受け付
けられており、会話中に頭部スイッチ8が押されると強
制的に就寝モードに移行する。また、会話中以外で頭部
スイッチ8が押された場合、コミュニケーションモード
の所定時間を、さらに1分延ばす処理を行うこともでき
る。
As described above, the operation of the head switch 8 is also accepted in this communication mode, and when the head switch 8 is pressed during a conversation, the mode is forcibly shifted to the sleep mode. Further, when the head switch 8 is pressed other than during a conversation, a process of extending the predetermined time of the communication mode by one minute can be performed.

【0146】このように2つの玩具を向き合わせるだけ
で、玩具同士が勝手に恰も会話をしているように音声を
発するようになる。さらに会話をしている感覚を高める
には、出力タイミングを2つの玩具間で制御して、一方
が喋っているときは他方は喋らないようにすると、会話
を聞いている感覚まで演出できる。とくに、自動録音後
に再生する場合は、オウム返しにワードが再生されるの
で、まるで玩具同士が音声学習を行っているかのように
振る舞わせることができる。また、登録ワードは、たい
てい述語であることに着目すると、一方が主語(ペット
名または飼い主名)を言うと他方が述語(登録ワード)
を返すようにしたり、一方が主語(ペット名または飼い
主名)に続けて述語(登録ワード)を言うようにする
と、益々会話が成立しているようにでき、組合せの妙を
使用者が楽しむことができ、趣向性が高まる。
As described above, just by facing the two toys, the toys emit sounds as if they were talking as if they were on their own. In order to further enhance the sense of conversation, the output timing is controlled between the two toys so that when one is talking and the other is not, the feeling of listening to the conversation can be produced. In particular, when playing back after automatic recording, the word is played back as a parrot, so that the toys can behave as if they are performing voice learning. Also, paying attention to the fact that a registered word is usually a predicate, if one says the subject (pet name or owner's name), the other is the predicate (registered word)
Or if one of them says the predicate (registration word) following the subject (pet name or owner's name), more and more conversation can be established, and the user can enjoy the oddity of the combination Can be made, and the taste is enhanced.

【0147】なお、本発明の実施形態は、図1の外観図
に示したような電子ペット玩具に限定されるものではな
く、たとえば音声出力装置を備えたコンピュータやゲー
ム機などにも広く適用することができる。また、本発明
の実施形態の説明で使用した各図におけるフローチャー
ト図をプログラムとして表現することにより、本願発明
を、プログラムを記録した記録媒体に適用することも可
能である。
The embodiment of the present invention is not limited to the electronic pet toy as shown in the external view of FIG. 1, but is widely applied to, for example, a computer or a game machine having an audio output device. be able to. Also, by expressing the flowcharts in the respective drawings used in the description of the embodiments of the present invention as programs, the present invention can be applied to a recording medium on which the programs are recorded.

【0148】[0148]

【発明の効果】本発明に係る音声処理装置によれば、検
出対象物(たとえば、他の音声処理装置)と向き合わせ
ただけで、覚えた言葉を発声したりして、恰も会話して
いるような楽しみが得られる。また、発声を交互にした
り、相手が発声した言葉を真似たり、主語と述語で簡単
な文として発声したりできる。本発明に係る音声処理装
置の使用時に、これらのお喋りしている雰囲気そのもの
を楽しんだり、言葉の組合せの意外性,面白さを楽しむ
ことを通して恰も2ひきの生物がいるような感覚が得ら
れ、趣向性が高まる。
According to the voice processing device of the present invention, the user merely speaks to the object to be detected (for example, another voice processing device) and speaks the learned words. Such fun can be obtained. Also, it is possible to alternate utterances, imitate words spoken by the other party, or utter as a simple sentence using a subject and a predicate. At the time of using the voice processing device according to the present invention, it is possible to enjoy the sensation as if there are two living creatures through enjoying the atmosphere of talking and the unexpectedness and fun of the combination of words. The taste is enhanced.

【図面の簡単な説明】[Brief description of the drawings]

【図1】図1は、本発明の音声処理装置の実施形態に係
る玩具の外観を示す図である。
FIG. 1 is a diagram illustrating an appearance of a toy according to an embodiment of a voice processing device of the present invention.

【図2】図2は、本発明の音声処理装置の実施形態に係
る玩具の構成を示す図である。
FIG. 2 is a diagram illustrating a configuration of a toy according to an embodiment of the voice processing device of the present invention.

【図3】図3は、本発明の実施形態に係る玩具の初回起
動時の動作に係る動作モードを示す図である。
FIG. 3 is a diagram showing an operation mode related to an operation at the time of initial activation of the toy according to the embodiment of the present invention.

【図4】図4は、通常モードにおける動作モードの詳細
を示した図である。
FIG. 4 is a diagram showing details of an operation mode in a normal mode.

【図5】図5は、コミニュケーションモードにおける玩
具の配置を示す俯瞰図である。
FIG. 5 is an overhead view showing an arrangement of toys in a communication mode.

【図6】図6は、信頼パラメータに係る動作モードを示
す図である。
FIG. 6 is a diagram illustrating an operation mode according to a reliability parameter;

【図7】図7は、初起動モードにおける処理を説明する
第1のフローチャート図である。
FIG. 7 is a first flowchart illustrating a process in an initial startup mode;

【図8】図8は、初起動モードにおける処理を説明する
第2のフローチャート図である。
FIG. 8 is a second flowchart illustrating the processing in the first activation mode.

【図9】図9は、起床モードにおける処理を説明するフ
ローチャート図である。
FIG. 9 is a flowchart illustrating a process in a wake-up mode;

【図10】図10は、音声認識処理における処理を説明
するフローチャート図である。
FIG. 10 is a flowchart illustrating processing in voice recognition processing.

【図11】図11は、仮登録処理における処理を説明す
る第1のフローチャート図である。
FIG. 11 is a first flowchart illustrating a process in a temporary registration process;

【図12】図12は、仮登録処理における処理を説明す
る第2のフローチャート図である。
FIG. 12 is a second flowchart illustrating a process in a temporary registration process;

【図13】図13は、登録延長処理における処理を説明
する第1のフローチャート図である。
FIG. 13 is a first flowchart illustrating a process in a registration extension process;

【図14】図14は、登録延長処理における処理を説明
する第2のフローチャート図である。
FIG. 14 is a second flowchart illustrating the processing in the registration extension processing;

【図15】図15は、頭部スイッチのスイッチング時の
発声処理を説明するフローチャート図である。
FIG. 15 is a flowchart illustrating an utterance process performed when the head switch is switched.

【図16】図16は、アラーム処理を説明する第1のフ
ローチャート図である。
FIG. 16 is a first flowchart illustrating an alarm process;

【図17】図17は、アラームモード時の処理を説明す
る第2のフローチャート図である。
FIG. 17 is a second flowchart illustrating the process in the alarm mode.

【図18】図18は、コミュニケーションモード時の処
理を説明するフローチャート図である。
FIG. 18 is a flowchart illustrating a process in a communication mode.

【符号の説明】[Explanation of symbols]

1…制御回路(制御手段)、2…ROM(第2の記憶手
段)、3…FLASHROM(第1の記憶手段)、4…
マイク(音声入力手段)、5…音程変換回路、6…音声
増幅回路、7…スピーカ(音声出力手段)、8…頭部ス
イッチ、9…コミュニケーションスイッチ(リードスイ
ッチおよびスイッチング手段)、10…アラームスイッ
チ、11…リセットスイッチ、12…時計動作機構。
DESCRIPTION OF SYMBOLS 1 ... Control circuit (control means), 2 ... ROM (2nd storage means), 3 ... FLASHROM (1st storage means), 4 ...
Microphone (voice input means), 5 pitch conversion circuit, 6 voice amplification circuit, 7 speaker (voice output means), 8 head switch, 9 communication switch (lead switch and switching means), 10 alarm switch , 11: reset switch, 12: clock operating mechanism.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 星野 学 東京都墨田区錦糸1丁目2番1号 リズム 時計工業株式会社内 Fターム(参考) 2C150 CA01 CA02 DF02 DF04 DF06 DF33 ED31 ED42 ED52 EF03 EF16 EF23 FA42 5D045 AB11 DB02 9A001 DD11 HH18 JJ75 JJ76 KK45 ──────────────────────────────────────────────────続 き Continuation of the front page (72) Inventor Manabu Hoshino 1-2-1 Kinshi, Sumida-ku, Tokyo Rhythm Watch Industry Co., Ltd. F-term (reference) 2C150 CA01 CA02 DF02 DF04 DF06 DF33 ED31 ED42 ED52 EF03 EF16 EF23 FA42 5D045 AB11 DB02 9A001 DD11 HH18 JJ75 JJ76 KK45

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】検出対象物が近接配置されたときにスイッ
チングするリードスイッチと、音または音声が出力され
る音声出力手段と、音または音声が記憶されている記憶
手段と、制御手段とを有し、 上記制御手段は、上記リードスイッチのスイッチング動
作による検出信号の変化に基づいて、上記音声出力手段
および上記記憶手段を制御して、上記記憶手段内に記憶
されている音または音声を読み出し、上記音声出力手段
から出力させる音声処理装置。
1. A reed switch for switching when an object to be detected is arranged in proximity to the object, a sound output means for outputting a sound or a sound, a storage means for storing the sound or the sound, and a control means. The control unit controls the audio output unit and the storage unit based on a change in a detection signal due to a switching operation of the reed switch, and reads out a sound or a sound stored in the storage unit, An audio processing device for outputting from the audio output means.
【請求項2】音声が入力される音声入力手段と、乱数を
生成する乱数生成手段とをさらに有し、 上記記憶手段は、上記音声入力手段から入力された音声
が書き換え可能に記憶される第1記憶手段と、上記音声
の組合せおよび出力間隔を示す音声出力パターンが複数
予め記憶された第2記憶手段とを含み、 上記制御手段は、上記リードスイッチのスイッチングを
上記検出信号により検知したときは、上記乱数生成手段
により生成された乱数に基づいて上記第2記憶手段内の
上記複数の音声出力パターンから任意にパターンを選出
し、選出したパターンに従って、上記音声を上記第1記
憶手段から読み出し上記音声出力手段から出力させる請
求項1記載の音声処理装置。
2. The apparatus according to claim 1, further comprising: voice input means for inputting voice; and random number generation means for generating a random number. The storage means stores the voice input from the voice input means in a rewritable manner. 1 storage means, and second storage means in which a plurality of voice output patterns indicating the combination of voices and the output interval are stored in advance, wherein the control means detects switching of the reed switch by the detection signal. Arbitrarily selecting a pattern from the plurality of audio output patterns in the second storage means based on the random number generated by the random number generation means, reading the audio from the first storage means in accordance with the selected pattern, 2. The sound processing device according to claim 1, wherein the sound is output from a sound output unit.
【請求項3】音声が入力される音声入力手段と、乱数を
生成する乱数生成手段とをさらに有し、 上記記憶手段は、上記音声入力手段から入力された複数
の音声が書き換え可能に記憶される第1記憶手段と、複
数の声または音声、当該声または音声の組合せおよび出
力間隔を示す第2音声出力パターンおよび上記第1記憶
手段内の音声の組合せおよび出力間隔を示す第1音声出
力パターンが予め記憶された第2記憶手段とを含み、 上記制御手段は、上記リードスイッチのスイッチングを
上記検出信号により検知したときは、上記乱数生成手段
により生成された乱数に基づいて上記第2記憶手段内の
上記第1,第2音声出力パターンから任意にパターンを
選出し、選出したパターンに従って、上記声または音声
を上記第1または第2記憶手段から読み出し、上記音声
出力手段から順次出力させる請求項1記載の音声処理装
置。
3. A voice input means for receiving a voice, and a random number generating means for generating a random number, wherein the storage means rewritably stores a plurality of voices input from the voice input means. A first storage means, a plurality of voices or voices, a second voice output pattern indicating a combination of the voices or voices and an output interval, and a first voice output pattern indicating a combination of voices and the output interval in the first storage means Is stored in advance, and said control means, when switching of said reed switch is detected by said detection signal, based on a random number generated by said random number generation means, said second storage means Arbitrarily selects a pattern from the first and second voice output patterns in the first and second voice output patterns, and stores the voice or voice in the first or second storage means in accordance with the selected pattern. Reading, speech processing apparatus according to claim 1, wherein to sequentially outputted from the audio output means.
【請求項4】音声が入力される音声入力手段と、乱数を
生成する乱数生成手段とをさらに有し、 上記制御手段は、上記リードスイッチがスイッチングし
上記検出対象物が近接配置されている期間において、上
記乱数生成手段から生成された乱数が所定値を示すとき
は、上記音声入力手段から入力される音声を取得して上
記記憶手段の自動登録音声の記憶領域に保持する請求項
1記載の音声処理装置。
4. A voice input means for inputting a voice, and a random number generating means for generating a random number, wherein the control means controls a period during which the reed switch is switched and the object to be detected is arranged in proximity. 2. The method according to claim 1, wherein when the random number generated by the random number generation means indicates a predetermined value, a voice input from the voice input means is acquired and stored in an automatic registration voice storage area of the storage means. Voice processing device.
【請求項5】上記記憶手段は、上記自動取込音声が書き
換え可能に記憶される第1記憶手段と、上記自動登録音
声の組合せおよび出力間隔を示す第3音声出力パターン
が予め記憶された第2記憶手段とを含み、 上記制御手段は、上記検出対象物が近接配置されている
が上記音声入力装置から音声が入力されなくなったこと
を検知したときは、上記第2記憶手段内の第3音声出力
パターンに従って、上記第1記憶手段に保持していた自
動登録音声を読み出し、上記音声出力手段から出力させ
る請求項4記載の音声処理装置。
5. The storage means includes: a first storage means in which the automatically fetched voice is rewritably stored; and a third voice output pattern in which a combination of the automatically registered voice and an output interval are stored in advance. The storage means, when the control means detects that the object to be detected is arranged close to but no longer receives voice from the voice input device, the control means stores the third object in the second storage means. 5. The voice processing apparatus according to claim 4, wherein the automatic registration voice stored in the first storage unit is read out according to the voice output pattern, and output from the voice output unit.
【請求項6】上記第1または第2記憶手段に、主語とな
る名詞を表す主語音声が予め登録された領域を有し、 上記制御手段は、上記乱数生成手段により生成された乱
数が所定値を示すときは、上記記憶手段から上記主語音
声を読み出して、当該主語音声を上記パターンに基づい
て出力すべき各音声の前に間欠的に挿入しながら上記音
声出力手段からの音声出力を実行する請求項2,3また
は5記載の音声処理装置。
6. The first or second storage means has an area in which a subject voice representing a noun serving as a subject is registered in advance, and the control means sets the random number generated by the random number generation means to a predetermined value. Indicates that the subject voice is read from the storage means, and the subject voice is output intermittently from the voice output means while being intermittently inserted before each voice to be output based on the pattern. The audio processing device according to claim 2, 3 or 5.
【請求項7】上記リードスイッチは、音声処理装置同士
を向き合わせたときに相手方に配置されたスイッチング
手段に臨む位置に設けらているを含む請求項1,2,
3,4,5または6に記載の音声処理装置。
7. The reed switch according to claim 1, wherein said reed switch is provided at a position facing a switching means disposed on the other side when the audio processing apparatuses face each other.
7. The audio processing device according to 3, 4, 5 or 6.
【請求項8】上記制御手段は、上記リードスイッチがス
イッチングしてから一定期間の経過後に、上記パターン
に基づく音声の自動出力を停止させる請求項2,3また
は5記載の音声処理装置。
8. The audio processing apparatus according to claim 2, wherein said control means stops automatic output of audio based on said pattern after a lapse of a predetermined period from when said reed switch is switched.
JP2000077867A 2000-03-15 2000-03-15 Simulated biological toy Expired - Fee Related JP3485517B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000077867A JP3485517B2 (en) 2000-03-15 2000-03-15 Simulated biological toy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000077867A JP3485517B2 (en) 2000-03-15 2000-03-15 Simulated biological toy

Publications (2)

Publication Number Publication Date
JP2001265369A true JP2001265369A (en) 2001-09-28
JP3485517B2 JP3485517B2 (en) 2004-01-13

Family

ID=18595355

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000077867A Expired - Fee Related JP3485517B2 (en) 2000-03-15 2000-03-15 Simulated biological toy

Country Status (1)

Country Link
JP (1) JP3485517B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006146720A (en) * 2004-11-22 2006-06-08 Pioneer Electronic Corp Information transmitting device, information receiving device, and information transmitting and receiving system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56117300A (en) * 1980-02-22 1981-09-14 Sharp Kk Voice announcer
JPS60100800U (en) * 1983-12-16 1985-07-09 株式会社 日商通産 A device that generates sound when the door opens and closes.
JPS61163398A (en) * 1985-01-14 1986-07-24 横河電機株式会社 Voice output unit
JPH01133995U (en) * 1988-03-09 1989-09-12
JPH0648791U (en) * 1992-12-11 1994-07-05 有限会社ミツワ Sounding toys
JPH07213751A (en) * 1994-01-26 1995-08-15 Barashima Kogyo Kk Pattern recognizing device and sounding toy therewith
JPH08837A (en) * 1994-06-15 1996-01-09 Takara Co Ltd Operating toy
JPH11109991A (en) * 1997-10-08 1999-04-23 Mitsubishi Electric Corp Man machine interface system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56117300A (en) * 1980-02-22 1981-09-14 Sharp Kk Voice announcer
JPS60100800U (en) * 1983-12-16 1985-07-09 株式会社 日商通産 A device that generates sound when the door opens and closes.
JPS61163398A (en) * 1985-01-14 1986-07-24 横河電機株式会社 Voice output unit
JPH01133995U (en) * 1988-03-09 1989-09-12
JPH0648791U (en) * 1992-12-11 1994-07-05 有限会社ミツワ Sounding toys
JPH07213751A (en) * 1994-01-26 1995-08-15 Barashima Kogyo Kk Pattern recognizing device and sounding toy therewith
JPH08837A (en) * 1994-06-15 1996-01-09 Takara Co Ltd Operating toy
JPH11109991A (en) * 1997-10-08 1999-04-23 Mitsubishi Electric Corp Man machine interface system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006146720A (en) * 2004-11-22 2006-06-08 Pioneer Electronic Corp Information transmitting device, information receiving device, and information transmitting and receiving system
JP4658569B2 (en) * 2004-11-22 2011-03-23 パイオニア株式会社 Information transmitting apparatus, information receiving apparatus, and information transmitting / receiving system

Also Published As

Publication number Publication date
JP3485517B2 (en) 2004-01-13

Similar Documents

Publication Publication Date Title
US8715031B2 (en) Interactive device with sound-based action synchronization
US6641454B2 (en) Interactive talking dolls
RU2419477C2 (en) Devices with musical interaction
US8821209B2 (en) Interactive device with sound-based action synchronization
WO2009114499A4 (en) Methods and devices for language skill development
WO1999032203A1 (en) A standalone interactive toy
JP2001264466A (en) Voice processing device
JP2006337483A (en) Electronic musical instrument
JP2001265369A (en) Voice processor
JP3180606U (en) Pronunciation toy
JP2001265372A (en) Sound processor
JP2001265377A (en) Voice processor
JP2001265381A (en) Voice processor
JP2001265364A (en) Sound processor
JPH10179941A (en) Voice recognition and generation apparatuses, toy with the apparatus, and recording medium having voice recognition and generation control program recorded therein
JP3612687B2 (en) Audio processing device
TWI392983B (en) Robot apparatus control system using a tone and robot apparatus
JP2015231456A (en) Word-chain toy
JPH11352981A (en) Sound device, and toy with the same built-in
JP2020148921A (en) Musical performance apparatus
JP2000350870A (en) Multi-tone voice generation toy
JP3107398U (en) Toy for learning
TWM560933U (en) Voice device
JP2001188531A (en) Playing toy

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees