TWI343828B - Hand-held device - Google Patents

Hand-held device Download PDF

Info

Publication number
TWI343828B
TWI343828B TW96140259A TW96140259A TWI343828B TW I343828 B TWI343828 B TW I343828B TW 96140259 A TW96140259 A TW 96140259A TW 96140259 A TW96140259 A TW 96140259A TW I343828 B TWI343828 B TW I343828B
Authority
TW
Taiwan
Prior art keywords
acceleration
handheld device
type
audio file
processing unit
Prior art date
Application number
TW96140259A
Other languages
Chinese (zh)
Other versions
TW200918139A (en
Inventor
Chuan Hong Wang
Te Yuan Kung
li zhang Huang
Xiao-Guang Li
Kuan Hong Hsieh
Original Assignee
Ensky Technology 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 Ensky Technology Co Ltd filed Critical Ensky Technology Co Ltd
Priority to TW96140259A priority Critical patent/TWI343828B/en
Publication of TW200918139A publication Critical patent/TW200918139A/en
Application granted granted Critical
Publication of TWI343828B publication Critical patent/TWI343828B/en

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Description

1343828 仰^ "月Jr日修⑵正替換頁 九、發明說明: ---- 【發明所屬之技術領域】 本發明涉及一種手持設備,尤其涉及一種手持設備。 ' 【先前技術】 . 骰子是一種常見的娛樂工具,如人們喜歡搖骰子比點 數大小。已經有手機廠商推出具有搖骰子功能的手機,通 過傾斜手機使骰子滾動,同時伴隨有骰子滾動的聲音。雖 0 然上述手機可以模擬搖動骰子,但骰子滾動的聲音固定, 不能真實的再現骰子隨搖動程度的不同而發出的不同的聲 音。 【發明内容】 本發明的主要目的在於提供一種手持設備,該手持設 備可以輸出與搖動程度相應的骰子滾動的聲音,解决現有 的手持設備不能真實的再現骰子滾動的聲音的問題。 爲實現上述目的,本發明提供一種手持設備,包括一 Φ 處理單元、一記憶體、一運動感應單元和解碼單元,該運 動感應單元用於感測該手持設備的運動以獲取手持設備的 加速度,該解碼單元用於對該儲存於該記憶體中的音頻檔 進行解碼,並將解碼後的數位信號轉換爲類比信號進行輸 出,該記憶體儲存有多個第一類音頻檔以及一對照表,該 第一類音頻檔用於模擬利用工具搖動骰子的聲音,該對照 表記錄了該手持設備的加速度範圍與該第一類音頻檔的對 應關係,其中,該處理單元接收該運動感應單元實時發送 的信號,根據該信號實時確定該手持設備的加速度,從而 7 1343828 _ 竹年"月;日修(更)正替換頁 根據該對照表確定該加速度所處的加速度範圍,幷在該加 速度範圍持續的時間内,根據該對照表播放與該加速度範 圍相對應的第一類音頻檔。 ' 本發明的手持設備通過感應單元識別運動加速度,幷 . 輸出與運動加速度相對應的音頻檔,真實的再現骰子隨搖 動程度的不同而發出的不同的聲音。 【實施方式】 _ 請參考圖1,爲本發明的手持設備10的硬體架構圖。 該手持設備10包括一處理單元11、一記憶體12、一運動 感應單元13、一隨機數産生單元14以及一解碼單元15。 該運動感應單元13用於感測該手持設備10的運動以 獲取手持設備10的加速度,在本實施方式中,該運動感應 單元13爲一可以感測X轴、Y軸以及Z轴三個方向加速 度的3轴加速度感測器。 該記憶體12儲存有多個搖動音頻檔以及結束音頻 φ 檔,每一搖動音頻檔及結束音頻檔與該手持設備1〇的某一 加速度範圍相對應。該搖動音頻檔用於模擬利用工具搖動 骰子的聲音,該結束音頻檔用於模擬搖動停止後骰子依靠 慣性滾動的聲音。 在本實施方式中,該搖動音頻檔共有4個,即第一、 第二、第三及第四搖動音頻檔,其内容爲利用木制骰盅搖 動骰子的聲音。相應的,結束音頻檔共有4個,分別爲第 一、第二、第三及第四結束音頻檔,其内容爲搖動停止後 骰子依靠慣性在木制骰盅中滾動的聲音。 8 Ή年丨丨月今曰修(声)正替投冥 該解碼單元15用於對該儲存於該記憶體12中的音頻 檔進行解碼,並將解碼後的數位信號轉換爲類比信 杆 輸出。 订 請參考圖2,爲記錄該手持設備1〇的加速度範圍與該 搖動音頻檔以及結束音頻檔對應關係的對照表。該對照^ 儲存=記憶體丨2中,該對照表記錄了該手持設備1〇^ ,度範11與該搖動音㈣以及結束音賴的對應關係,如 當该手持設備10的加速度大小處於加速度2區的範圍時, 相對應的爲第二搖動音頻檔以及第二結束音頻楷。其中, 加速度1區、2區、3區以及4區爲4個連續的數值範圍, 用於表示該手持設備1G受龍動的劇烈程度的不同。 可以理解的,運動感應單元13感測到的加速度爲沿X 轴、Y袖及Z軸方向的直綫加速度感測器。而該手持 10在實際運動中’如料持設備1G受到搖動時盆運動 方向往往幷不在X轴、Y軸或2軸的任何—個方向/此時, 根據矢量分解顧’該加速度在χ軸、γ軸及2軸三個方 向均有分量’即該處理單元u根據該運動感應單元 信號可以確定該手持設備1G在\輪、丫_及2轴方向 上的加速f。因此’可根據矢量合成原理,使3個軸上的 加速度矢量相加’即可確定該手持設備1G的加速度。 請參考圖3 ’爲搖_手持設備10的―種情况^ 的加速度曲綫圖。 既 該手持設備10受到搖動時,該運動感應單元13 Μ 信號至該處理單元U,該處理單元u根據該信號確定^ fi年//月女曰修(ιέ)正替換頁 持設備ίο的加速度大小,從而根據該對照表確定該加速度 所處的加速度範圍,幷在該加速度範圍持續的時間内,播 放與該加速度範圍相對應的搖動音頻檔。 例如在圖3中,該手持設備10受到搖動後的加速度逐 漸變大,加速度大小經歷了加速度4區、3區、2區以及1 區。剛開始搖動時候,該手持設備10的加速度處於加速度 4區,則該處理單元11控制該手持設備10播放該第四搖 動文件’在該加速度4區所持續的時間内’該手持設備10 持續播放該第四搖動音頻檔。 爲使該手持設備10可以更加真實的模擬搖動骰子的 聲音,在該手持設備10的搖動停止後繼續播放一結束音頻 檔。該手持設備10搖動停止時,該手持設備10的加速度 變爲零,但不能排除在該手持設備10搖動過程中該加速度 變爲零的情况。因此,當該手持設備10的加速度變爲零 時,該處理單元11控制該手持設備10繼續播放在該加速 度變爲零時刻之前播放的搖動音頻檔一預定時間,比如繼 續播放相應的搖動音頻檔0.5秒。若該預定時間過後,該 加速度仍然爲零,則該處理單元11判斷該手持設備10的 運動停止。則該處理單元11根據該加速度變爲零時刻之前 一特定時刻的加速度,如加速度變爲零時刻的前0.2秒時 的加速度,播放與該加速度相對應的結束音頻槽。 當該結束音頻檔播放完畢後,該處理單元11發送信號 至該隨機數産生單元14,該隨機數産生單元生成一個或多 個範圍在1至6之間的隨機數,該處理單元11控制該手持 j 343.8281343828 仰^ "月Jr日修 (2) is replacing page IX. Description of the invention: ---- Technical Field of the Invention The present invention relates to a handheld device, and more particularly to a handheld device. [Prior Art] . Xunzi is a common entertainment tool, such as people like to shake the dice than the point size. Mobile phone manufacturers have introduced mobile phones with a dice function, which is used to tilt the phone to roll the dice, accompanied by the sound of dice rolling. Although the above mobile phone can simulate shaking the dice, the sound of the dice rolling is fixed, and the different sounds of the dice with different degrees of shaking cannot be reproduced. SUMMARY OF THE INVENTION A primary object of the present invention is to provide a handheld device that can output a sound of tweezers rolling corresponding to the degree of shaking, and solves the problem that the existing handheld device cannot truly reproduce the sound of the dice rolling. To achieve the above object, the present invention provides a handheld device including a Φ processing unit, a memory, a motion sensing unit, and a decoding unit, wherein the motion sensing unit is configured to sense motion of the handheld device to obtain acceleration of the handheld device. The decoding unit is configured to decode the audio file stored in the memory, and convert the decoded digital signal into an analog signal for outputting, the memory storing a plurality of first type audio files and a comparison table. The first type of audio file is used to simulate the sound of shaking the dice with the tool, and the comparison table records the correspondence between the acceleration range of the handheld device and the first type of audio file, wherein the processing unit receives the motion sensing unit and transmits the real-time. The signal, according to the signal, determines the acceleration of the handheld device in real time, thereby 7 1343828 _ 竹年"月;日修(more) positive replacement page, according to the comparison table, determining the acceleration range in which the acceleration is located, 幷 in the acceleration range The first type of audio file corresponding to the acceleration range is played according to the comparison table for a continuous time. The handheld device of the present invention recognizes the motion acceleration by the sensing unit, outputs an audio file corresponding to the motion acceleration, and truly reproduces different sounds emitted by the dice depending on the degree of shaking. [Embodiment] _ Please refer to FIG. 1 , which is a hardware architecture diagram of the handheld device 10 of the present invention. The handheld device 10 includes a processing unit 11, a memory 12, a motion sensing unit 13, a random number generating unit 14, and a decoding unit 15. The motion sensing unit 13 is configured to sense the motion of the handheld device 10 to obtain the acceleration of the handheld device 10. In the embodiment, the motion sensing unit 13 can sense the X axis, the Y axis, and the Z axis. 3-axis acceleration sensor for acceleration. The memory 12 stores a plurality of shaking audio files and an ending audio φ file, and each of the shaking audio files and the ending audio files corresponds to a certain acceleration range of the handheld device 1 . The panning audio file is used to simulate the sound of the dice using the tool, which is used to simulate the sound of the dice relying on inertial scrolling after the shaking is stopped. In the present embodiment, the shaking audio file has four, that is, the first, second, third, and fourth shaking audio files, and the content thereof is the sound of shaking the dice with the wooden cymbal. Correspondingly, there are 4 end audio files, which are the first, second, third and fourth end audio files, respectively. The content is the sound of the dice relying on inertia to roll in the wooden raft after the shaking stops. The decoding unit 15 is used to decode the audio file stored in the memory 12, and convert the decoded digital signal into an analog signal output. . Please refer to FIG. 2, which is a comparison table for recording the correspondence between the acceleration range of the handheld device 1 and the shaking audio file and the ending audio file. The comparison ^ storage = memory 丨 2, the comparison table records the correspondence between the handheld device 1 , the degree 11 and the shaking sound (4) and the ending tone, such as when the acceleration of the handheld device 10 is at an acceleration When the range of the 2 zone is concerned, the corresponding corresponds to the second panning audio file and the second ending audio port. Among them, the acceleration 1 zone, the 2 zone, the 3 zone and the 4 zone are 4 consecutive numerical ranges, which are used to indicate the difference in severity of the handheld device 1G. It can be understood that the acceleration sensed by the motion sensing unit 13 is a linear acceleration sensor along the X-axis, the Y-sleeve, and the Z-axis direction. While the hand-held 10 is in actual motion, the direction of movement of the bowl is often not in any direction of the X-axis, the Y-axis or the 2-axis when the device 1G is shaken, and according to the vector decomposition, the acceleration is on the axis. The gamma axis and the two axes have components in both directions. That is, the processing unit u can determine the acceleration f of the handheld device 1G in the direction of the wheel, the 丫, and the 2 axes according to the motion sensing unit signal. Therefore, the acceleration of the handheld device 1G can be determined by adding the acceleration vectors on the three axes according to the principle of vector synthesis. Please refer to FIG. 3' for the acceleration graph of the shaking case_hand device 10. When the handheld device 10 is shaken, the motion sensing unit 13 signals a signal to the processing unit U, and the processing unit u determines, according to the signal, the acceleration of the page-receiving device ίο The size, so that the acceleration range in which the acceleration is located is determined according to the comparison table, and the shaking audio file corresponding to the acceleration range is played for a duration of the acceleration range. For example, in Fig. 3, the acceleration of the handheld device 10 after being shaken is gradually increased, and the acceleration magnitude is subjected to accelerations of 4, 3, 2, and 1 regions. At the beginning of the shaking, the acceleration of the handheld device 10 is in the acceleration zone 4, then the processing unit 11 controls the handheld device 10 to play the fourth shaking file 'the duration of the acceleration zone 4'. The handheld device 10 continues to play. The fourth shakes the audio file. In order for the handheld device 10 to more realistically simulate the sound of the shaking dice, an end audio file continues to be played after the shaking of the handheld device 10 is stopped. When the handheld device 10 is stopped, the acceleration of the handheld device 10 becomes zero, but the acceleration of the handheld device 10 during the shaking process cannot be excluded. Therefore, when the acceleration of the handheld device 10 becomes zero, the processing unit 11 controls the handheld device 10 to continue playing the rocking audio file played before the acceleration becomes zero for a predetermined time, such as continuing to play the corresponding shaking audio file. 0.5 seconds. If the acceleration is still zero after the predetermined time has elapsed, the processing unit 11 judges that the movement of the handheld device 10 is stopped. Then, the processing unit 11 plays the acceleration at a specific time before the zero time according to the acceleration, such as the acceleration at the first 0.2 seconds when the acceleration becomes zero, and plays the ending audio slot corresponding to the acceleration. After the end audio file is played, the processing unit 11 sends a signal to the random number generating unit 14, the random number generating unit generates one or more random numbers ranging between 1 and 6, and the processing unit 11 controls the Handheld j 343.828

種情况下所對應 的 圖3為搖動圖i所示手持設備的— 加速度曲綫示意圖。Figure 3 corresponds to the acceleration curve of the handheld device shown in Figure i.

【主要元件符號說明】 手持設備 10 處理單元 11 記憶體 12 運動感應單元 13 隨機數產生單元 14 解碼單元 15[Description of main component symbols] Handheld device 10 Processing unit 11 Memory 12 Motion sensing unit 13 Random number generating unit 14 Decoding unit 15

Claims (1)

1343828 ____ ' 竹年丨丨月ί日修(p正替換頁 __ -4 十、申請專利範圍: 1. 一種手持設備,包括一處理單元、一記憶體、一運 _ 動感應單元和解碼單元,該運動感應單元用於感測該 手持設備的運動以獲取手持設備的加速度,該解碼單 元用於對該儲存於該記憶體中的音頻檔進行解碼,並 將解碼後的數位信號轉換爲類比信號進行輸出,其改 良在於: # 該記憶體儲存有多個第一類音頻檔以及一對照表, 該第一類音頻檔用於模擬利用工具搖動骰子的聲 音,該對照表記錄了該手持設備的加速度範圍與該 第一類音頻檔的對應關係; 該處理單元接收該運動感應單元實時發送的信號, 根據該信號實時確定該手持設備的加速度,從而根 據該對照表確定該加速度所處的加速度範圍,並在 該加速度範圍持續的時間内,根據該對照表播放與 ^ 該加速度範圍相對應的第一類音頻棺。 2. 如申請專利範圍第1項所述的手持設備,其中,所 述記憶體還儲存有多個第二類音頻檔,用於模擬搖動 停止後骰子依靠慣性滾動的聲音,當該手持設備加速 度變爲零時,該處理單元繼續播放該加速度變爲零時 刻之前正在播放的第一類音頻檔一預定時間,若該預 定時間過後,該加速度仍爲零,則該處理單元播放與 該加速度變爲零時刻之前一預定時刻的加速度相對 12 1343828 __ 、 " 1 —, I I, 1件丨I月玄曰修(¾)正替換頁 應的第二類音頻檔。 3. 如申請專利範圍第2項所述的手持設備,其中,所 述手持設備還包括一隨機數産生單元,在該第二類音 頻檔播放完畢後,該處理單元控制該隨機數產生單元 生成一個或多個隨機數,並通過語音輸出該隨機數。 4. 如申請專利範圍第1項所述的手持設備,其中,所 述運動感應單元爲一加速度感測器。 ❿ 131343828 ____ '竹年丨丨月ί日修 (p is replacing page __ -4 X. Patent application scope: 1. A handheld device, including a processing unit, a memory, a mobile _ motion sensing unit and a decoding unit The motion sensing unit is configured to sense motion of the handheld device to obtain acceleration of the handheld device, the decoding unit is configured to decode the audio file stored in the memory, and convert the decoded digital signal into an analogy The signal is outputted, and the improvement is as follows: # The memory stores a plurality of first type audio files and a comparison table, the first type of audio files is used to simulate the sound of shaking the dice with a tool, and the comparison table records the handheld device. Corresponding relationship between the acceleration range and the first type of audio file; the processing unit receives a signal sent by the motion sensing unit in real time, and determines an acceleration of the handheld device according to the signal, thereby determining an acceleration of the acceleration according to the comparison table a range, and corresponding to the acceleration range corresponding to the comparison table during the duration of the acceleration range 2. A type of audio device as described in claim 1, wherein the memory further stores a plurality of second type audio files for simulating the sound of the dice relying on inertial scrolling after the shaking is stopped. When the acceleration of the handheld device becomes zero, the processing unit continues to play the first type of audio file that is being played before the acceleration becomes zero for a predetermined time. If the acceleration is still zero after the predetermined time, the processing unit plays The acceleration at a predetermined time before the acceleration becomes zero is relative to 12 1343828 __ , " 1 —, II, 1 piece 丨I month Xuan Zun repair (3⁄4) is replacing the second type of audio file that should be replaced by the page. The handheld device of claim 2, wherein the handheld device further comprises a random number generating unit, after the second type of audio file is played, the processing unit controls the random number generating unit to generate one or more a random number, and the random number is output by voice. 4. The handheld device of claim 1, wherein the motion sensing unit is an acceleration Sensor. ❿ 13
TW96140259A 2007-10-26 2007-10-26 Hand-held device TWI343828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW96140259A TWI343828B (en) 2007-10-26 2007-10-26 Hand-held device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW96140259A TWI343828B (en) 2007-10-26 2007-10-26 Hand-held device

Publications (2)

Publication Number Publication Date
TW200918139A TW200918139A (en) 2009-05-01
TWI343828B true TWI343828B (en) 2011-06-21

Family

ID=44726625

Family Applications (1)

Application Number Title Priority Date Filing Date
TW96140259A TWI343828B (en) 2007-10-26 2007-10-26 Hand-held device

Country Status (1)

Country Link
TW (1) TWI343828B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112791408B (en) * 2021-02-22 2022-10-04 上海莉莉丝科技股份有限公司 Real-time audio processing method, system, device, and medium

Also Published As

Publication number Publication date
TW200918139A (en) 2009-05-01

Similar Documents

Publication Publication Date Title
CN101380518B (en) Hand held device for controlling game based on shake degree
US20110045907A1 (en) Scheme for providing audio effects for a musical instrument and for controlling images with same
JP5377878B2 (en) Program, information storage medium, and game system
JP6113437B2 (en) hearing aid
JP5493864B2 (en) Electronics
TWI343828B (en) Hand-held device
JP2017131409A (en) Game program and game system
JP2006346284A (en) After-recording experience device and after-recording experience program
JP2011180470A (en) Sound visualizing device
JP2012100798A (en) Portable game machine
JP2011221064A (en) Karaoke system
CN101635156B (en) Handheld device effect and method capable of generating scratch
JP2009131360A (en) Portable terminal, program and information storage medium
KR20080099006A (en) Method and apparatus for mixing and adding sound effect in audio data using digital audio player
JP2013054334A (en) Electronic device
JP6159515B2 (en) GAME SYSTEM, GAME DEVICE, GAME PROGRAM, AND GAME PROCESSING CONTROL METHOD
JP2006251023A (en) Electronic musical instrument using attitude angle detection device, and control method thereof
JP2007034002A (en) Personal digital assistant
KR101014961B1 (en) Wireless communication terminal and its method for providing function of music playing using acceleration sensing
JP5652066B2 (en) Movie compression control device, movie recording device, and movie recording / playback device
KR100748370B1 (en) Method and moving picture reproducing apparatus for synchronizing video and audio data
JP2010165444A (en) Music playback controller, music playback system, and program
JP2008022978A (en) Game system, program and information storage medium
JP2007047307A (en) Sound-effect generating apparatus
US20080266452A1 (en) Multi-media device

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees