TW200428270A - Recording method of continuous audio data - Google Patents
Recording method of continuous audio data Download PDFInfo
- Publication number
- TW200428270A TW200428270A TW92116053A TW92116053A TW200428270A TW 200428270 A TW200428270 A TW 200428270A TW 92116053 A TW92116053 A TW 92116053A TW 92116053 A TW92116053 A TW 92116053A TW 200428270 A TW200428270 A TW 200428270A
- Authority
- TW
- Taiwan
- Prior art keywords
- data
- recording area
- recording
- sound data
- continuous sound
- Prior art date
Links
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Description
200428270 /五、發明說明(1) 【發明所屬之技術領域】 ' 本發明係關於一種錄音技術,且特別係指連續聲音資 料之έ己錄方法。 [先前技術】 習知之錄音技術,係使用一電腦系統來對於連續聲音 資料(如·類比式音頻訊號)進行記錄’電腦糸統中需分 配若干的記憶體作為緩衝記錄區域1 0 (如第1圖所示), 緩衝記錄區域1 0至少具有一資料攔位1 0 0及一狀態攔位 1 0 2,其中資料攔位1 0 0係用以儲存電腦系統對連續聲音資 -料0行取樣後的資料,而狀態欄位1 0 2係用以儲存緩衝記 錄區域1 0目前的使用狀態,若使用狀態係一處理狀態,係 代表缓衝記錄區域1 0内之取樣資料正被電腦系統處理中, 若使用狀態係一預備狀態,則代表緩衝記錄區域1 0正對取 .樣之資料進行儲存。 緩衝記錄區域1 0的大小將直接影響收錄之聲音的連續 '性及時間延遲性。若緩衝記錄區域1 0越大,則可以記錄的 取樣資料將越多且越完整,致使所收錄之聲音的連續性續 好,不過由於電腦系統必須處理更多的取樣資料,則會i| 戒所收錄之聲音的時間延遲性更差;反之,若緩衝記錄區 域_0越小,則收錄之聲音的時間延遲性越能獲得改善,但 其連續性則會變差。因此,習知技藝所收錄之聲音並無法 同時兼顧連續性及時間延遲性。 再者,習知技藝之做法係當一緩衝記錄區域1 〇之使用 空間不足時,即令電腦系統開始對緩衝記錄區域1 0内的取200428270 / V. Description of the invention (1) [Technical field to which the invention belongs] The present invention relates to a recording technique, and particularly refers to a method of recording continuous sound data. [Prior art] The conventional recording technology uses a computer system to record continuous sound data (such as analog audio signals). 'Computer systems need to allocate a certain amount of memory as a buffer recording area 1 0 (such as the first (Shown in the figure), the buffer recording area 10 has at least one data block 100 and a status block 102, wherein the data block 100 is used to store a computer system for sampling continuous audio data-data 0 lines The status field 1 0 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 If the use state is a standby state, it means that the buffer 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 continuous continuity of the recorded sound, but since the computer system must process more sampling data, it will be i | The time delay of the recorded sound is worse; conversely, if the buffer recording area _0 is smaller, the time delay of the recorded sound can be improved, but its continuity will be worse. Therefore, the sounds recorded by Xizhi Technology cannot take into account both continuity and time delay. Furthermore, 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頁 200428270 五、發明說明(2) 樣資料進行處理(包含:壓縮、儲存等),然後解除缓衝 記錄區域1 0的預備狀態,而改設為一處理狀態,以使得隨 後的取樣資料被放入另一個緩衝記錄區域1 0中,再將該另 一個緩衝記錄區域之狀態設為一預備狀態,如此不斷進 行’直到聲音收錄完成。由上可知’電腦糸統所需執行之 工作相當多且繁瑣,而導致無法連續地來記錄聲音資料, 且此正為使用習知技藝所收錄之聲音普遍具有連續性不佳 的主要因素。 【發明内容】 本發明之主要目的係在於提供一種連續聲音資料之記 錄方法,以解決習知技藝所收錄之聲音具有連續性不佳之 問題,並進而使所收錄之聲音能夠同時兼顧連續性及時間 延遲性。 為達到上述之目的,本發明之連續聲音資料之記錄方 法,適以在具有一多線程微處理器之電腦系統中進行,其 中該多線程微處理器係用以在一個以上之線程中切換並執 行,該方法包_含:讀取該連續聲音資料,並對該連續聲· j 資料進行連續地取樣;將取樣得之資料依序記錄於一緩# 記錄區域,於該緩衝記錄區域之使用空間不足時’則該電 腦系統提供一個以上之第一輔助線程,該第一輔助線程係 ® 用以處理該緩衝記錄區域内之資料;以及提供一第二輔助 線程’该弟一輔助線程係用以將隨後之取樣貢料依序§己錄 於另一緩衝記錄區域。 為使熟悉該項技藝人士瞭解本發明之目的、特徵及功17341 Yingyeda.ptd Page 4 200428270 V. Description of the invention (2) Sample data is processed (including: compression, storage, etc.), and then the buffer state of the buffered recording area 10 is released and changed to a processing state. So that the subsequent sampling data is put into another buffered recording area 10, the state of the other buffered recording area is set to a standby state, and so on, until the sound recording is completed. It can be seen from the above that the computer system needs to perform a lot of work and tedious, which makes it impossible to record sound data continuously, and this is the main factor of the poor continuity of the sounds recorded by the conventional techniques. [Summary of the Invention] The main purpose of the present invention is to provide a method for recording continuous sound data, so as to solve the problem of poor continuity of the sound recorded by the conventional art, and further enable the recorded sound to take into account both continuity and time Delayed. In order to achieve the above-mentioned object, the continuous sound data recording method of the present invention is suitable to be performed in a computer system having a multi-threaded microprocessor, wherein the multi-threaded microprocessor is used to switch between more than one thread and When executed, the method includes: reading the continuous sound data and continuously sampling the continuous sound j data; sequentially recording the sampled data in a buffer # recording area, and using the buffered recording area When the space is insufficient, the computer system provides more than one first auxiliary thread, the first auxiliary thread is used to process the data in the buffer recording area; and a second auxiliary thread is provided, which is a young auxiliary thread. In order to record the subsequent sampling materials in §, they have been recorded in another buffer recording area. In order for those skilled in the art to understand the purpose, features and functions of the present invention
17341英業達.ptd 第5頁 200428270 五、發明說明(3) '效,茲藉由下述具體實施例,並配合所附之圖式,對本發 明詳加說明如后: 【實施方式】 本發明之精神,係在於使用多線程(thread)技術來 進行連續聲音資料之記錄,亦即藉由創建多個輔助線程來 分別對緩衝記錄區域1 0内的資料進行處理,以及回應處理 緩衝記錄區域1 0之使用空間不足之事件(event)。因 此,本發明適以在具有一多線程微處理器之電腦系統中進 行,如第2圖所示,其即為一可供本發明使用之電腦系統 -架0圖。於第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 200428270 V. Description of the invention (3) 'Effectiveness' The following specific examples and the accompanying drawings are used to explain the present invention in detail as follows: [Embodiment] This The spirit of the invention 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. Event of 10 running out of space. Therefore, the present invention is suitable to be implemented in a computer system having a multi-threaded microprocessor, as shown in FIG. 2, which is a computer system-frame 0 diagram 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 recording processing by a user. The following embodiments, The recording method of the continuous sound data of the present invention will be explained using a notebook personal computer. In order to simplify the drawings and descriptions, 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 data from the outside. Continuous β sound data, such as a sound collector (microphone), and used to play the sound data recorded by the computer system_, such as speakers (speakers) •, and the memory 2 2 can be dynamically allocated with at least one buffered record The logical structure of the area 2 2 0 and the buffer recording area 2 2 0 can be seen in FIG. 1, which is mainly used to store the data sampled by the computer system for continuous sound data; the multi-threaded microprocessor 2 4 Buffer record used to detect the memory 2 2
IfIf
1734]英業達.ptd 第6頁 200428270 五、發明說明(4) 區域2 2 0内所儲存的聲音資料是否填滿,其可以為一 I n t e 1 系列之微處理晶片;其中,當該多線程微處理器2 4判斷該 記憶體2 2之緩衝記錄區域2 2 0所儲存的聲音資料即將填滿 時,則將該緩衝記錄區域2 2 0内所儲存的聲音資料儲存於 該儲存裝置2 6中,該儲存裝置2 6可以利用一磁碟裝置來實 現。 第3圖係本發明方法之流程圖。首先,步驟3 0 0係藉由 如第2圖的電腦系統之輸入/輸出裝置2 0接收一連續聲音資 料,並對該連續聲音資料進行連續地取樣,而取樣之頻率 可由使用者來決定,接著進至步驟3 0 2。 於該步驟3 0 2中,該電腦糸統係將取樣所得的貢料依 序記錄於記憶體2 2中的一緩衝記錄區域2 2 0之中,接著進 至步驟3 0 3。 於該步驟3 0 3中,該電腦糸統判斷用以儲存取樣貢料 的缓衝記錄區域2 2 0是否將由該取樣資料予以填滿,若是 則進至步驟3 0 4 ;反之,則返回該步驟3 0 3。 於該步驟3 0 4中,該電腦系統自該被取樣資料填滿的-— 缓衝記錄區域2 2 0取出所有的取樣貢料’並將该取出的取 樣資料儲存於該儲存裝置2 6中,接著進至步驟3 0 5。 於該步驟3 0 5中,該電腦系統清除該被取樣資料填滿 的缓衝記錄區域2 2 0内的内容,以作為電腦系統下次接收 取樣資料時的儲存之用,接著進至步驟3 〇 6。 於該步驟3 0 6中,該電腦系統自該記憶體2 2中找尋下 一個緩衝記錄區域(2 2 2或2 2 4),並且將其設為預備狀1734] Inventec.ptd Page 6 200428270 V. Description of the invention (4) Whether the sound data stored in the area 2 2 0 is full, it can be an Inte 1 series of micro-processing chips; When the thread microprocessor 2 4 determines that the sound data stored in the buffered recording area 2 2 0 of the memory 2 2 is about to be filled, the sound data stored in the buffered recording area 2 2 0 is stored in the storage device 2 In 6, the storage device 26 can be implemented by a magnetic disk device. Figure 3 is a flowchart of the method of the present invention. First, step 3 0 0 receives a continuous sound data through the input / output device 2 of the computer system as shown in FIG. 2 and continuously samples the continuous sound data. The sampling frequency can be determined by the user. Then proceed to step 3 02. In step 302, the computer system sequentially records the sampled tributary materials in a buffered recording area 2 2 0 in the memory 22, and then proceeds to step 303. In step 303, the computer system judges whether the buffer recording area 2 2 0 for storing sampling materials will be filled by the sampling data, and if so, proceeds to step 3 0 4; otherwise, returns to the Step 3 0 3. In step 304, the computer system takes out all sampling materials from the buffered recording area 2 2 0 filled with the sampled data 'and stores the taken sampling data in the storage device 26. , Then proceed to step 305. In step 305, the computer system clears the contents of the buffered recording area 2 2 0 filled with the sampled data for storage when the computer system receives the sampled data next time, and then proceeds to step 3 〇6. In step 3 06, the computer system searches for the next buffered recording area (2 2 2 or 2 2 4) from the memory 2 2 and sets it to the standby state.
]7341英業達.ptd 第7頁 200428270 五、發明說明(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)進行處理,藉此令該電腦 裝g所處理的取樣資料連續地進行儲存,而其中,藉由該 儲存裝置2 6輔助該電腦系統於資料儲存上的處理,以解決 資料儲存不連續的問題,並且提供一種多線程聲音資料之 儲存技術。 因此,本發明可以大幅縮短對緩衝記錄區域内之取樣 資料的處理時間,以提高錄音程式的執行效率;再者,處 理狀態中的缓衝記錄區域可以及時被收回,而使得連續地 取樣動作能夠」須利進行,且間接使得所分配之緩衝記錄§ 域的記憶空間可以減少,因而節省了系統資源。由於本# 明係使用多線程技術,而且緩衝記錄區域可以設置為具有 較%的記憶空間,因此本發明具有較佳之時間延遲性,而 此優勢尤其適用於即時傳輸語音資料的場合中,例如:視 訊會議等,而且又能同時兼具有連續性之特點。 惟以上所述僅為本發明之較佳實施方式而已,並非用 以限定本發明之實質技術内容之範圍。本發明之實質技術] 7341 英 业 达 .ptd Page 7 200428270 V. Description of the invention (5), state, for the computer system to sequentially record the sampling data subsequently processed < in the buffer recording area that has been set to the standby state (2 2 2 or 2 2 4), and then return to step 3 0 0, 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 g is continuously stored, and among them, by the The storage 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. It must be carried out profitably, and indirectly, the memory space of the allocated buffer record § field can be reduced, thereby saving system resources. Since this #Ming uses multi-threading technology, and the buffer recording area can be set to have a relatively 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: Video conferencing, 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頁 20042827017341 Inventec.ptd Page 8 200428270
17341英業達.ptd 第9頁 2Q0428270 -圖式簡單說明 【圖式簡單說明】 第1圖係本發明所使用的緩衝記錄區域之邏輯示意 圖。 第2圖係一可供本發明使用之電腦系統架構圖 第3圖係本發明方法之流程圖。 10 緩衝記錄區域 20 輸入/輸出裝置 2 2 記憶體 2 多線程微處理器 26 儲存裝置 100 緩衝記錄區域之資料欄位 102 緩衝記錄區域之狀態欄位 2 2 0 緩衝記錄區域 -2 2 2 缓衝記錄區域 •2 2 4 緩衝記錄區域17341 Yingyeda.ptd Page 9 2Q0428270-Simple illustration of the drawing [Simplified illustration of the drawing] Fig. 1 is a logical diagram of the buffer recording area used by the present invention. Fig. 2 is a diagram of a computer system architecture usable by the present invention. Fig. 3 is a flowchart of the method of the present invention. 10 Buffer recording area 20 I / O device 2 2 Memory 2 Multi-threaded microprocessor 26 Storage device 100 Buffer recording area data field 102 Buffer recording area status field 2 2 0 Buffer recording area-2 2 2 Buffer Recording area 2 2 4 Buffered recording area
17341英業達.ptd 第10頁17341 Inventec.ptd Page 10
Claims (1)
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 true TW200428270A (en) | 2004-12-16 |
TWI231913B 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) |
-
2003
- 2003-06-13 TW TW92116053A patent/TWI231913B/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
TWI231913B (en) | 2005-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021008394A1 (en) | Video processing method and apparatus, and electronic device and storage medium | |
US7664558B2 (en) | Efficient techniques for modifying audio playback rates | |
US8825617B2 (en) | Limiting deduplication based on predetermined criteria | |
WO2017096882A1 (en) | Video playing method and device | |
JP5280521B2 (en) | Multimode register file for use in branch prediction | |
JP2009502050A (en) | GPU timeline with rendered queue | |
KR101503623B1 (en) | Low-power audio decoding and playback using cached images | |
US8626323B2 (en) | Method and apparatus for playing audio files | |
US20070260780A1 (en) | Media subsystem, method and computer program product for adaptive media buffering | |
WO2023160092A1 (en) | Method for processing blockchain transactions, and blockchain node and electronic device | |
US20050050135A1 (en) | Handheld digital multimedia workstation and method | |
US8478109B2 (en) | Recording apparatus and method, program, and storage medium | |
TW200428270A (en) | Recording method of continuous audio data | |
TWI223231B (en) | Digital audio with parameters for real-time time scaling | |
US20050016364A1 (en) | Information playback apparatus, information playback method, and computer readable medium therefor | |
TW200426674A (en) | Signal processing device, pre-fetching method and pre-fetching program | |
WO2022033318A1 (en) | Application method of audio material in hand-drawn animation | |
CN114253477A (en) | Ultrahigh concurrent image data writing method and device and readable storage medium | |
JP4191221B2 (en) | Recording / reproducing apparatus, simultaneous recording / reproducing control method, and simultaneous recording / reproducing control program | |
US20090327344A1 (en) | Media foundation source reader | |
JPH11149706A (en) | Recording reproducer and recording reproduction method | |
CN112133269B (en) | Audio processing method, device, equipment and medium | |
KR100308134B1 (en) | Digital audio decoder and decoding method thereof | |
WO2023051178A1 (en) | Task scheduling method, electronic device, chip system, and storage medium | |
CN113722245B (en) | Buffer self-adaptive adjustment method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |