in the views of fig1 to 3 are shown a piñata 10 , typically having a fanciful or cylindrical structure with a length to diameter ratio of about 5 to 3 . the material of a solid annular housing 12 is typically a cardboard or paper mache - like material but , as well , may be made of an appropriate thermoplastic , such as frangible polystyrene . its actual appearance may be that of an animal or cartoon character . axially disposed within piñata 10 is a longitudinal channel 14 having disposed at a lower end 16 thereof , an external speaker 18 . said speaker is in electrical communication with an integrated circuit ( ic ) board 20 which is suspended within channel 14 by compressed cotton 22 , or other padding , disposed above and below ic board 20 within the channel 14 . shock from an external force 24 as , for example , might result from the impact upon the piñata 10 by a stick or bat 25 will be communicated through said housing 12 of the piñata and , therefrom , to a shock sensor 26 which is in electrical communication with ic board 20 . this is shown schematically by wire 28 in fig1 to 3 . it is of course to be appreciated that a shock sensor of sufficient sensitivity may be placed directly upon the ic board , as a discrete element , this as opposed to the use of hollow cylindrical sensor 26 . as may be noted in fig4 the integrated circuit thereof is provided with a voice chip library 30 , such as an is22c022 chip which includes a random selection means such that each time shock sensor 26 is actuated , the voice chip library 30 will chose a different one of a plurality of pre - programmed phrases at random , and will send the same to speaker 18 . appropriate powering of the circuit is enabled through the use of a resistor 44 , zener diode 32 , and a filter capacitor 34 . also , appropriate current from a battery 35 to the speaker 18 is enabled through the use of transistor 36 which is biased by resistor 38 . further shown in fig4 is an on - off switch 40 , biasing resistor 42 , and shock sensor 26 . a rigid substrate of the pc board 20 is shown in fig5 illustrating therein one of numerous potential configurations of the components shown in fig4 . it may , thereby be appreciated that there is , through the above , provided a battery - powered talking piñata capable of broadcasting event - specific phrases responsive to a shock or impact of sufficient magnitude . further , by housing of all components within a paper tube 46 ( see fig3 ) within channel 14 of the piñata , in combination with sufficient padding 22 thereof , the shock sensor 26 of the ic board may be employed to monitor impacts of sufficient force upon the surface of the piñata to actuate the voice chip library . it is to be further appreciated that said paper tube 46 may , if desired , be removed from the piñata after the “ breaking ” thereof , for use in another piñata . another embodiment is shown in fig6 in which a microcontroller 50 is connected to circuitry to enable sounds to be recorded for later playback . specifically , the microcontroller 50 is attached to a mic / speaker 51 through an output amplifier 52 that is responsive to a select signal 53 from the microcontroller 50 to selectively enable output amplifier 52 to receive and amplify an audio signal 54 generated by microcontroller 50 such that an amplified audio signal 55 is applied to speaker 51 . thus , when the shock sensor 59 is disturbed by an impact of sufficient magnitude , the speaker 51 outputs sound from the piñata . this is the normal operation mode of the talking piñata . however the piñata of this embodiment also incorporates a “ record ” mode which is invoked by closing program switch 56 . prior to the closing of switch 56 , the microcontroller 50 is in a low - power sleep mode state . microcontroller 50 detects the closure of switch 56 , wakes up , and after a predetermined switch “ debounce ” and time delay inverts the polarity of the select signal 53 . the select signal 53 is operative to turn off output amplifier 52 , and turn on input amplifier 57 . it is well known that a speaker can be used as a microphone by application of a current through a speaker coil and detection of the change in current through the coil due to vibration of the speaker cone caused by incident sound . in the embodiment of fig6 input amplifier 57 is responsive to said select signal 53 to provide the necessary bias current to mic / speaker 51 . input amplifier 57 further detects and amplifies the audio signal 55 output by mic / speaker 51 and provides an audio signal 58 to microcontroller 50 . microcontroller 50 inputs and processes audio signal 58 in a manner well known in the art , for example , by converting the analog audio signal into a digital signal . the microcontroller may optionally further process the signal by using one of a number of well known audio compression techniques , such as mp3 compression . the microcontroller 50 stores an electrical representation of the audio signal in a nonvolatile memory such as an eeprom or flash memory that is either integral to the microcontroller or connected to the microcontroller through an interface ( not shown ). while it is possible to record sound of predetermined duration , it is preferable to enable sounds of varying durations to be recorded . to this end , microcontroller 50 records sounds applied to the microphone / speaker while switch 56 is closed . the reopening of switch 56 indicates that the desired audio has been sampled . the microcontroller 50 therefore identifies and associates the electrical representation of the audio segment with a sound segment that can be played when the piñata is subjected to an impact . after recording the first sound segment , program switch 56 may again be closed to record a subsequent sound segment . this process may be repeated to record as many sound segments as the nonvolatile memory can hold . it may be appreciated that the various components shown in fig6 may be embodied in an asic . also , the speaker / microphone and associated circuitry may be replaced by separate speaker and microphone elements . while the embodiment of fig6 has been described in terms of digital processing of an analog signal , it is also possible to utilize analog sampling , processing and storage techniques . for example , a received audio signal may be stored using one or more analog storage elements , and compression may be achieved using analog compander circuitry . shock sensor 59 may be replaced by a piezoelectric device to detect movement or sound . in a further embodiment , shown in fig7 a microcontroller 80 is connected to speaker 82 through output amplifier 81 . the output amplifier 81 is responsive to control signal 83 to control the volume of the sound emanating from speaker 82 . shock gauge 84 is a sensor whose electrical characteristics vary in response to movement . for example , shock gauge 84 may comprise a strain gauge attached to a diaphragm such that when the piñata is struck , the resistance of the strain gauge changes in response to the shock impulse imparted to the diaphragm . microcontroller 80 detects the magnitude of the shock impulse by monitoring the resistance of the strain gauge or , alternatively , the current through the strain gauge . the microcontroller 80 selects one of a plurality of predetermined audio responses to be output to the speaker 82 based upon the severity of the shock applied to the piñata . accordingly , for example , the piñata may evoke a more antagonistic response , or a louder response when the piñata is struck a more severe blow . as shown in fig7 said embodiment may include a product dispenser 90 . the product dispenser preferably consists of an opening in the piñata covered by a spring loaded dispenser door 91 . products 92 , such as candy , small toys , and the like are placed within the piñata through door 91 or through an additional opening in the piñata . following such placement , the door 91 is closed . in operation , opening of the dispenser door is effected by a solenoid 93 which is controlled by a dispense signal 89 from microcontroller 80 . dispensing of product may be accomplished in a number of ways . for example , the microcontroller 80 may be programmed to dispense all of the product when a blow of sufficient magnitude is detected through the shock gauge 84 . alternatively , product may be dispensed after a predetermined number of hits of any magnitude are detected . this alternative would be especially desirable in instances in which those participating in the piñata celebration are very young . in addition , the dispense signal 89 may be of such a duration as to allow limited quantities of product to be dispensed each time a dispense decision is made , thereby enabling all participants to be successful in “ breaking ” the piñata . led &# 39 ; s 85 and 86 are also controlled in response to the striking of the piñata . these led &# 39 ; s are preferably placed in the position of the eyes of the figure represented by the piñata , though they may also be placed elsewhere on the piñata . the led &# 39 ; s may be lit in accordance with the programming within the microcontroller program , or alternatively may be lit in accordance with a separate enunciator or shock sensor ( not shown ). an interface connector 88 provides for programming of the piñata , and / or downloading of new features or programming into the piñata . a preferred interface is an i2c bus interface . however any interface capable of transferring data into the piñata would be suitable . the interface enables a variety of custom or semi - custom audio segments to be downloaded into the piñata from a computer or other peripheral device . thus , for example , a purchaser of a piñata may visit a web site and listen to a variety of alternative phrases , sounds , or voices . the purchaser may then specify a set of audio segments to be included in the piñata of his choice . piñata parameter settings may also be selected , such as for example , the relative volume settings of selected segments , the order in which segments should be played , and the shock levels required to invoke certain responses . this information is then used to create customized download files which are downloaded into the piñata via the interface connector 88 prior to delivery of the piñata to the customer . it should be noted that the interface connector 88 may optionally comprise an acceptor for a memory element such as a rom , eeprom , or flash memory . in such a case , the programming information is programmed into the interface connector 88 prior to delivery of the piñata , or the piñata control device to the customer . programming of the piñata is advantageously limited to prevent unauthorized reprogramming of piñata hardware . limiting reprogramming is especially important when the piñata module is reusable . this can be accomplished by embedding in the piñata &# 39 ; s microcontroller a cryptographic signature algorithm such as rsa or dsa to ensure that downloading of new audio segments , parameters , or programming is limited to authorize distributors . while there has been shown and described the preferred embodiment of the instant invention it is to be appreciated that the invention may be embodied otherwise than is herein specifically shown and described and that , within said embodiment , certain changes may be made in the form and arrangement of the parts without departing from the underlying ideas or principles of this invention as set forth herewith .
a speech or phrase emitting celebration device , in the nature of a piñata , includes a longitudinal axial channel within which is placed a complementally sized integrated circuit including a library of pre - programmed voice chips having phrases selected by random . the circuit is responsive to impacts or shocks upon a fanciful housing of the device sufficient to actuate a shock sensor switch thereof . a speaker , in electrical communication with the circuit board of the integrated circuit , is in mechanical communication with a speaker at an end of the channel so that the emitted phrase may be heard by those in the vicinity of the device . a hollow cylindrical sensor may be disposed within the interior channel to provide appropriate input to the shock sensor switch , or a more sensitive discrete element sensor may be used .