TWI231913B - Recording method of continuous audio data - Google Patents

Recording method of continuous audio data Download PDF

Info

Publication number
TWI231913B
TWI231913B TW92116053A TW92116053A TWI231913B TW I231913 B TWI231913 B TW I231913B TW 92116053 A TW92116053 A TW 92116053A TW 92116053 A TW92116053 A TW 92116053A TW I231913 B TWI231913 B TW I231913B
Authority
TW
Taiwan
Prior art keywords
data
recording area
continuous sound
buffer
sound data
Prior art date
Application number
TW92116053A
Other languages
Chinese (zh)
Other versions
TW200428270A (en
Inventor
Kuang-Shin Lin
Tian-Hai Yin
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to TW92116053A priority Critical patent/TWI231913B/en
Publication of TW200428270A publication Critical patent/TW200428270A/en
Application granted granted Critical
Publication of TWI231913B publication Critical patent/TWI231913B/en

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention provides a recording method of continuous audio data, which is adapted to be proceeded in a computer system with multi-thread microprocessor. The invention employs computer system to read continuous audio data and continuously sample. Then, the sampled data are sequentially recorded in a buffer record area. When the space of the buffer record area in the invention is insufficient, provide more than one first auxiliary thread and a second auxiliary thread, in which the first auxiliary thread is used to process the data in the buffer record area and the second auxiliary thread is used to sequentially record the sampled data afterwards in another buffer record area.

Description

1231913 五、發明說明(1) 【發明所屬之技術領域】 本發明係關於一種錄音技術,且特別係指連續聲音資 料之記錄方法。 【先前技術】 習知之錄音技術,係使用一電腦系統來對於連續聲音 資料(如:類比式音頻訊號)進行記錄,電腦系統中需分 配若干的記憶體作為緩衝記錄區域1 0 (如第1圖所示), 緩衝記錄區域1 0至少具有一資料欄位1 0 0及一狀態欄位 1 0 2,其中資料欄位1 0 0係用以儲存電腦系統對連續聲音資 料進行取樣後的資料,而狀態欄位1 0 2係用以儲存緩衝記 錄區域1 0目前的使用狀態,若使用狀態係一處理狀態,係 代表緩衝記錄區域1 0内之取樣資料正被電腦系統處理中, 若使用狀態係一預備狀態,則代表緩衝記錄區域1 0正對取 樣之資料進行儲存。 緩衝記錄區域1 0的大小將直接影響收錄之聲音的連續 性及時間延遲性。若緩衝記錄區域1 0越大,則可以記錄的 取樣資料將越多且越完整,致使所收錄之聲音的連續性越 好,不過由於電腦系統必須處理更多的取樣資料,則會造 成所收錄之聲音的時間延遲性更差;反之,若緩衝記錄區 域1 0越小,則收錄之聲音的時間延遲性越能獲得改善,但 其連續性則會變差。因此,習知技藝所收錄之聲音並無法 同時兼顧連續性及時間延遲性。 再者,習知技藝之做法係當一緩衝記錄區域1 0之使用 空間不足時,即令電腦系統開始對緩衝記錄區域1 0内的取1231913 V. Description of the invention (1) [Technical field to which the invention belongs] The present invention relates to a recording technique, and particularly to a method for recording continuous sound data. [Prior art] The conventional recording technology uses a computer system to record continuous sound data (such as analog audio signals). The computer system needs to allocate some memory as a buffer recording area 10 (as shown in Figure 1). (Shown), the buffer recording area 10 has at least one data field 100 and a status field 102, wherein the data field 100 is used to store the data after the computer system samples the continuous sound data. The status field 10 2 is used to store the current usage status of the buffered recording area 10. If the usage status is a processing status, it means that the sampling data in the buffered recording area 10 is being processed by the computer system. It is a standby state, which means that the buffered recording area 10 is storing the sampled data. The size of the buffer recording area 10 will directly affect the continuity and time delay of the recorded sound. If the buffer recording area 10 is larger, the more and more complete sampling data can be recorded, resulting in better continuity of the recorded sound, but because the computer system must process more sampling data, it will cause the recorded data to be recorded. The time delay of the sound is worse; on the contrary, if the buffer recording area 10 is smaller, the time delay of the recorded sound can be improved, but the continuity of the sound will be worse. Therefore, the sounds recorded by Xizhi Technology cannot take into account both continuity and time delay. In addition, the practice of know-how is to cause the computer system to start fetching data in the buffered recording area 10 when there is insufficient space in the buffered recording area 10.

17341英業達.ptd 第4頁 1231913 五、發明說明 樣資料進 記錄區域 後的取樣 一個緩衝 行,直到 工作相當 且此正為 的主要因 【發明内 本發 錄方法, 問題,並 延遲性。 為達 法,適以 中該多線 行,該方 資料進行 記錄區域 腦系統提 用以處理 (2) 行處理 1 0的預 資料被 έ己錄區 聲音收 多且繁 使用習 素。 容】 明之主 以解決 進而使 到上述 在具有 程微處 法包含 連續地 :於該 供一個 (包含:壓縮、儲存等),然後解除緩衝 備狀態,而改設為一處理狀態,以使得隨 放入另一個緩衝記錄區域1 0中,再將該另 域之狀態設為一預備狀態,如此不斷進 錄完成。由上可知,電腦系統所需執行之 瑣,而導致無法連續地來記錄聲音資料, 知技藝所收錄之聲音普遍具有連續性不佳 要目的係在於提供一種連續聲音資料之記 習知技藝所收錄之聲音具有連續性不佳之 所收錄之聲音能夠同時兼顧連續性及時間 鄱 該緩衝 線程,該第二輔 於另一緩衝記錄 為使熟悉該 之目 一多 理器 :讀 取樣 緩衝 以上 記錄 助線 區域 項技 的, 線程 係用 取該 :將 記錄 之第 區域 程係 本發明 微處理 以在一 連續聲 取樣得 區域之 一輔助 内之資 用以將 之連 器之 個以 音資 之資 使用 線程 料; 隨後 續聲音 電腦系 上之線 料’並 料依序 空間不 ,該第 以及提 之取樣 資料之 統中進 程中切 對該連續聲音 記錄於 記錄方 行,其 換並執 緩衝 足時 則該電 一輔助線程係 供一第二輔助 資料依序記錄 藝人士瞭解本發明之目的、特徵及功17341 Yingyeda.ptd Page 4 1231913 V. Description of the invention Sampling data into the recording area after sampling a buffer line until the work is equivalent and the main reason is [invention of this recording method, problems, and delay. In order to achieve this, the multi-line line is appropriate, and the data is recorded in the area. The brain system is used for processing. (2) The pre-processing data of line 10 is collected in the recorded area. Content] The master of the solution solves the above-mentioned problem in a micro-processing method, including: providing one (including: compression, storage, etc.), and then release the buffer state, and change to a processing state, so that Put it in another buffered recording area 10, and then set the state of the other domain to a standby state, so continuous recording is completed. It can be seen from the above that the computer system needs to be implemented in a trivial manner, which makes it impossible to continuously record sound data. The sound recorded by the know-how generally has poor continuity. The main purpose is to provide a record of continuous sound data. The sound has poor continuity. The recorded sound can take into account both continuity and time. This buffer thread is supplemented by another buffer record. In order to make you familiar with the purpose, a multi-processor: read the sample buffer above the record help. For the line area technology, the thread is used to take this: the recorded area is micro-processed by the present invention to supplement the data in one of the continuous sound sampling areas with the aid of audio data. Use the thread material; then continue the line material on the sound computer system. The material is not sequentially spaced. The continuous sound is recorded in the recording side during the process of the first and the sampling data mentioned above. At that time, the electric auxiliary thread is for a second auxiliary data to sequentially record the artisan to understand the purpose, characteristics and functions of the present invention.

17341英業達.ptd 第5頁 1231913 五、發明說明(3) 效,茲藉由下述具體實施例,並配合所附之圖式,對本發 明詳加說明如后: 【實施方式】 本發明之精神,係在於使用多線程(thread)技術來 進行連續聲音資料之記錄,亦即藉由創建多個輔助線程來 分別對緩衝記錄區域1 0内的資料進行處理,以及回應處理 緩衝記錄區域1 0之使用空間不足之事件(event)。因 此,本發明適以在具有一多線程微處理器之電腦系統中進 行,如第2圖所示,其即為一可供本發明使用之電腦系統 架構圖。於第2圖中,該電腦系統至少包括一輸入/輸出裝 置2 0、一記憶體2 2、一多線程微處理器2 4以及一儲存裝置 2 6。該電腦系統係指個人桌上型電腦、筆記型個人電腦、 數位錄音筆、數位個人助理或行動電話等用以供使用者進 行錄音處理之電子裝置(均未圖示),以下實施例,將以 筆記型個人電腦說明本發明的連續聲音資料之記錄方法。 為簡化圖式及說明,此處之系統架構僅顯示與本發明有關 之系統構件,其它無關之系統構件,並未顯示於圖式中。 該輸入/輸出裝置2 0主要係用以接收來自外界的連續 聲音資料,例如集聲器(麥克風),並且用以將該電腦系 統所收錄的聲音資料予以播放,例如揚聲器(喇叭):而 記憶體2 2可動態地分配有至少一緩衝記錄區域2 2 0,緩衝 記錄區域2 2 0的邏輯結構可以參見如第1圖所繪示者,其主 要係用以儲存電腦系統對連續聲音資料進行取樣後的資 料;多線程微處理器2 4係用以偵測該記憶體2 2之緩衝記錄17341 Yingyeda.ptd Page 5 1231913 V. Description of the invention (3) The following specific examples and the accompanying drawings are used to explain the present invention in detail as follows: [Embodiment] The present invention The spirit lies in the use of multi-thread (thread) technology for continuous sound data recording, that is, by creating multiple auxiliary threads to process the data in the buffer recording area 10 separately, and respond to the processing of the buffer recording area 1 An event with an insufficient space of 0. Therefore, the present invention is suitable to be implemented in a computer system having a multi-threaded microprocessor. As shown in FIG. 2, it is a structural diagram of a computer system that can be used by the present invention. In the second figure, the computer system includes at least an input / output device 20, a memory 2 2, a multi-threaded microprocessor 24, and a storage device 26. The computer system refers to an electronic device (not shown) such as a personal desktop computer, a notebook personal computer, a digital voice recorder, a digital personal assistant, or a mobile phone for users to perform recording processing. A method for recording continuous audio data according to the present invention will be described using a notebook personal computer. To simplify the drawings and description, the system architecture here only shows the system components related to the present invention, and other unrelated system components are not shown in the drawings. The input / output device 20 is mainly used to receive continuous sound data from the outside, such as a sound collector (microphone), and to play the sound data recorded by the computer system, such as a speaker (speaker): and memory The body 22 can be dynamically allocated with at least one buffered recording area 2 2 0. The logical structure of the buffered recording area 2 2 0 can be referred to as shown in FIG. 1, which is mainly used to store a computer system for continuous sound data. Sampled data; multi-threaded microprocessor 2 4 is used to detect the buffered record of the memory 2 2

1734]英業達.ptd 第6頁 12319131734] Inventec.ptd Page 6 1231913

1231913 五、發明說明(5) 態,用以供該電腦系統將隨後所處理的取樣資料依序記錄 於已經被設為預備狀態的緩衝記錄區域(2 2 2或2 2 4)之 中,接著則返回該步驟3 0 0,以令該電腦系統重複地將處 理中的取樣資料進行儲存,直到將連續聲音資料予以記錄 完成。 其中,第3圖所示之步驟3 0 4至步驟3 0 5可與步驟3 0 6並 行處理,亦即,電腦系統一方面對該被取樣資料填滿的緩 衝記錄區域2 2 0進行處理,另一方面則自記憶體22中對另 一個緩衝記錄區域(2 2 2或2 2 4)進行處理,藉此令該電腦 裝置所處理的取樣資料連續地進行儲存,而其中,藉由該 儲存裝置2 6輔助該電腦系統於資料儲存上的處理,以解決 資料儲存不連續的問題,並且提供一種多線程聲音資料之 儲存技術。 因此,本發明可以大幅縮短對緩衝記錄區域内之取樣 資料的處理時間,以提高錄音程式的執行效率;再者,處 理狀態中的緩衝記錄區域可以及時被收回,而使得連續地 取樣動作能夠順利進行,且間接使得所分配之緩衝記錄區 域的記憶空間可以減少,因而節省了系統資源。由於本發 明係使用多線程技術,而且緩衝記錄區域可以設置為具有 較小的記憶空間,因此本發明具有較佳之時間延遲性,而 此優勢尤其適用於即時傳輸語音資料的場合中,例如:視 訊會議等,而且又能同時兼具有連續性之特點。 惟以上所述僅為本發明之較佳實施方式而已,並非用 以限定本發明之實質技術内容之範圍。本發明之實質技術1231913 V. Description of the invention (5) state, for the computer system to sequentially record the sampled data processed in the buffer recording area (2 2 2 or 2 2 4) which has been set to the standby state, and then Then return to step 300, so that the computer system repeatedly stores the processed sampling data until the continuous sound data is recorded. Among them, steps 304 to 305 shown in FIG. 3 can be processed in parallel with step 306, that is, the computer system processes the buffered recording area 2 2 0 filled with the sampled data on the one hand. On the other hand, another buffered recording area (2 2 2 or 2 2 4) is processed from the memory 22, so that the sampling data processed by the computer device is continuously stored, and among them, the storage The device 26 assists the processing of the computer system on data storage to solve the problem of discontinuous data storage, and provides a multi-threaded sound data storage technology. Therefore, the present invention can greatly shorten the processing time of the sampling data in the buffered recording area to improve the execution efficiency of the recording program; further, the buffered recording area in the processing state can be retracted in time, so that continuous sampling can be performed smoothly It is carried out, and indirectly, the memory space of the allocated buffered recording area can be reduced, thereby saving system resources. Since the present invention uses multi-threading technology, and the buffered recording area can be set to have a small memory space, the present invention has better time delay, and this advantage is especially applicable to the occasion of real-time transmission of voice data, such as videoconferencing Conferences, etc., and can simultaneously have the characteristics of continuity. However, the above descriptions are merely preferred embodiments of the present invention, and are not intended to limit the scope of the essential technical content of the present invention. Essential technology of the present invention

17341英業達.ptd 第8頁 1231913 五、發明說明(6) 内容係廣義地定義於下述之申請專利範圍中,任何他人所 完成之技術實體或方法,若是與下述之申請專利範圍所定 義者完全相同,或是為同一等效之變更,均將被視為涵蓋 於此專利範圍之中。17341 Yingyeda.ptd Page 8 1231913 V. Description of the invention (6) The content is broadly defined in the scope of the patent application described below. Any technical entity or method completed by others is in accordance with the scope of the patent application described below. The definitions are exactly the same, or the equivalent changes are considered to be covered by this patent.

17341英業達.ptd 第9頁 1231913 圖式簡單說明 意 示 輯 邏 之 域 區 錄 己 =° 緩 的 用 使 所 明 發 本 係 圖 簡1 式第 圖 圖 圖 構 架 統 系 腦 電 〇 之圖 用程 使流 明之 發法 本方 供明 可發 -本 係 係 圖圖 2 3 第第 ίο 緩衝記錄區域 20 輸入/輸出裝置 2 2 記憶體 24 多線程微處理器 26 儲存裝置 100 緩衝記錄區域之資料欄位 102 緩衝記錄區域之狀態欄位 2 2 0 緩衝記錄區域 2 2 2 緩衝記錄區域 2 24 緩衝記錄區域17341 Yingyeda.ptd Page 9 1231913 Schematic description of the area where the logic is intended to be recorded = ° Slowly used to make the picture of the system Figure 1 Diagram of the structure of the system EEG Use the process to make the lumen issued by the party for the sake of sending it out-this system is shown in Figure 2 3 第 ίο Buffered recording area 20 Input / output device 2 2 Memory 24 Multi-threaded microprocessor 26 Storage device 100 Buffered recording area Data field 102 Status field of buffer recording area 2 2 0 Buffer recording area 2 2 2 Buffer recording area 2 24 Buffer recording area

1734]英業達.ptd 第10頁1734] Inventec.ptd Page 10

Claims (1)

1231913 六、申請專利範圍 1、 一種連續聲音資料之記錄方法,適以在具有一多線程 微處理器之電腦系統中進行,其中該多線程微處理器 係用以在至少一線程中切換並執行,該方法至少包 含: (a) 讀取該連續聲音資料,並對該連續聲音資料 進行連續地取樣; (b) 將取樣得之資料依序記錄於一緩衝記錄區 域; (c) 於該緩衝記錄區域之使用空間不足時,進行 下列步驟: (c 1)提供至少一第一輔助線程,該第一輔助 線程係用以處理該緩衝記錄區域内之資料;以及 (c2)提供一第二輔助線程,該第二輔助線程 係用以將隨後之取樣資料依序記錄於另一緩衝記錄區 域。 2、 如申請專利範圍第1項所述之連續聲音資料之記錄方 法,其中,該步驟(cl)及步驟(c2)可平行進行。 3、 如申請專利範圍第1或2項所述之連續聲音資料之記錄 方法,其中,該記錄方法復包含: 將步驟(c 1)中之緩衝記錄區域的狀態設為一處 理狀態;以及 將步驟(c 2)中之另一緩衝記錄區域的狀態設為 一預備狀態。 4、 如申請專利範圍第1或2項所述之連續聲音資料之記錄1231913 VI. Scope of patent application 1. A continuous sound data recording method suitable for computer systems with a multi-threaded microprocessor, wherein the multi-threaded microprocessor is used to switch and execute in at least one thread The method includes at least: (a) reading the continuous sound data and continuously sampling the continuous sound data; (b) sequentially recording the sampled data in a buffer recording area; (c) in the buffer When there is insufficient space in the recording area, the following steps are performed: (c 1) providing at least a first auxiliary thread for processing data in the buffered recording area; and (c2) providing a second auxiliary Thread, the second auxiliary thread is used to sequentially record subsequent sampling data in another buffer recording area. 2. The continuous sound data recording method as described in item 1 of the scope of patent application, wherein step (cl) and step (c2) can be performed in parallel. 3. The continuous sound data recording method as described in item 1 or 2 of the scope of patent application, wherein the recording method further comprises: setting the state of the buffered recording area in step (c 1) to a processing state; and The state of the other buffered recording area in step (c 2) is set to a standby state. 4. Recording of continuous sound data as described in item 1 or 2 of the scope of patent application 17341英業達.ptd 第11頁 1231913 六、申請專利範圍 方法,其中,該步驟(c 1)中之第一輔助線程係用以 執行至少下列步驟: 讀取該緩衝記錄區域内之資料,將該讀取資料儲 存於一儲存裝置中;以及 清除該緩衝記錄區域内之資料,以令該緩衝記憶 區域供下筆資料儲存之用。 5、 如申請專利範圍第1或2項所述之連續聲音資料之記錄 方法,其中,該連續聲音資料係一類比式音頻訊號。 6、 如申請專利範圍第4項所述之連續聲音資料之記錄方 法,其中,該儲存裝置係一磁碟裝置。17341 Yingyeda.ptd Page 11 1231913 6. Method for applying for a patent, wherein the first auxiliary thread in step (c 1) is used to perform at least the following steps: Read the data in the buffer record area, and The read data is stored in a storage device; and the data in the buffer recording area is cleared, so that the buffer memory area is used for storing the next data. 5. The continuous sound data recording method as described in item 1 or 2 of the scope of patent application, wherein the continuous sound data is an analog audio signal. 6. The continuous sound data recording method as described in item 4 of the scope of patent application, wherein the storage device is a magnetic disk device. 17341英業達.ptd 第12頁17341 Inventec.ptd Page 12
TW92116053A 2003-06-13 2003-06-13 Recording method of continuous audio data TWI231913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW92116053A TWI231913B (en) 2003-06-13 2003-06-13 Recording method of continuous audio data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW92116053A TWI231913B (en) 2003-06-13 2003-06-13 Recording method of continuous audio data

Publications (2)

Publication Number Publication Date
TW200428270A TW200428270A (en) 2004-12-16
TWI231913B true TWI231913B (en) 2005-05-01

Family

ID=36251077

Family Applications (1)

Application Number Title Priority Date Filing Date
TW92116053A TWI231913B (en) 2003-06-13 2003-06-13 Recording method of continuous audio data

Country Status (1)

Country Link
TW (1) TWI231913B (en)

Also Published As

Publication number Publication date
TW200428270A (en) 2004-12-16

Similar Documents

Publication Publication Date Title
CN105723451B (en) Transition from low power always-on listening mode to high power speech recognition mode
US11662974B2 (en) Mechanism for retrieval of previously captured audio
CN108551686B (en) Extraction and analysis of audio feature data
US20190237070A1 (en) Voice interaction method, device, apparatus and server
WO2017096882A1 (en) Video playing method and device
CN101155357A (en) Device and method for recording and saving voice call on mobile phone
US10667048B2 (en) Recording method, recording play method, apparatuses, and terminals
US20180166073A1 (en) Speech Recognition Without Interrupting The Playback Audio
JPH08153369A (en) Digitally compressed recorder
CN114627854A (en) Speech recognition method, speech recognition system, and storage medium
CN105516485A (en) Sound recording method and device
WO2022062979A1 (en) Audio processing method, computer-readable storage medium, and electronic device
TWI231913B (en) Recording method of continuous audio data
WO2021244368A1 (en) Method and device for video playback
TW201319927A (en) Audio processing system and adjusting method for an audio signal buffer
WO2015131634A1 (en) Audio noise reduction method and terminal
CN112218137B (en) Multimedia data acquisition method, device, equipment and medium
CN112133269B (en) Audio processing method, device, equipment and medium
WO2019061192A1 (en) Audio processing method and related product
CN100543865C (en) Synchronous voice recording player
CN201207182Y (en) Computer system capable of playing HD Audio sound when opening
US20030046084A1 (en) Method and apparatus for providing location-specific responses in an automated voice response system
CN1841541A (en) Electronic device with sound recording function and its sound recording method
CN1567241A (en) Method for registering continuous sound data
TW542991B (en) Device for recording meeting information

Legal Events

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