[go: up one dir, main page]

TW202447613A - Audio conversion method and apparatus - Google Patents

Audio conversion method and apparatus Download PDF

Info

Publication number
TW202447613A
TW202447613A TW112118981A TW112118981A TW202447613A TW 202447613 A TW202447613 A TW 202447613A TW 112118981 A TW112118981 A TW 112118981A TW 112118981 A TW112118981 A TW 112118981A TW 202447613 A TW202447613 A TW 202447613A
Authority
TW
Taiwan
Prior art keywords
audio
encapsulation
compressed audio
data burst
compressed
Prior art date
Application number
TW112118981A
Other languages
Chinese (zh)
Inventor
姚燕正
蕭嘉榮
Original Assignee
圓剛科技股份有限公司
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 圓剛科技股份有限公司 filed Critical 圓剛科技股份有限公司
Priority to TW112118981A priority Critical patent/TW202447613A/en
Priority to US18/670,707 priority patent/US20240394009A1/en
Publication of TW202447613A publication Critical patent/TW202447613A/en

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

An audio conversion method includes steps as follows. The audio conversion device receive an audio, where the audio is a compressed audio; the audio conversion device determine whether to perform a data bursts encapsulation process on the compressed audio according to the encapsulation state of the compressed audio; after determining whether to perform the data bursts encapsulation process on the compressed audio, the compressed audio having a data bursts encapsulation is outputted; the host receives the compressed audio having the data bursts encapsulation and performs a data bursts decapsulation process on the compressed audio having the data bursts encapsulation to obtain the compressed audio.

Description

音訊轉換方法及裝置Audio conversion method and device

本發明是有關於一種轉換方法及裝置,且特別是有關於一種音訊轉換方法及裝置。The present invention relates to a conversion method and device, and in particular to an audio conversion method and device.

隨著影音技術發展,越來越多電影或遊戲的影音源(Video/Audio Source)內容具有多聲道輸出,可以透過環繞式音響設備播放聆聽,給予觀眾或玩家身歷其境的感受。With the development of audio-visual technology, more and more video/audio source contents of movies or games have multi-channel output, which can be played and listened to through surround sound equipment, giving the audience or players an immersive experience.

當使用者在進行遊戲體驗時(例如:PS5遊戲機),如果當下想透過音訊擷取裝置擷取遊戲過程,而此時遊戲的音訊為壓縮音訊多聲道格式。When a user is playing a game (for example, a PS5 game console), if he wants to capture the game process through an audio capture device, the game audio is in a compressed audio multi-channel format.

然而,目前市面上擷取裝置並沒見到多聲道解碼器,當擷取裝置內部無此音訊格式解碼器,便無法進行多聲道擷取,須將遊戲機輸出聲音格式為未壓縮音訊,例如脈波編碼調變(PCM),大部分的擷取裝置,會使用PCM 16位元(bits)兩聲道的音質作為輸出/輸入,不支援壓縮音訊,對使用者來說失去了原汁原味的多聲道高音質的內容。However, there are no multi-channel decoders in the capture devices currently on the market. If there is no internal decoder for this audio format, multi-channel capture cannot be performed. The game console output sound format must be uncompressed audio, such as pulse coding modulation (PCM). Most capture devices use PCM 16-bit two-channel sound quality as output/input and do not support compressed audio. This means that users lose the original multi-channel high-quality sound content.

本發明提出一種音訊轉換方法及裝置,改善先前技術的問題。The present invention provides an audio conversion method and device to improve the problems of the prior art.

在本發明的一實施例中,本發明所提出的音訊轉換方法包含以下步驟:透過音訊轉換裝置接收音訊,其中音訊為壓縮音訊;依據壓縮音訊的封裝狀態,決定是否對壓縮音訊進行資料叢發封裝流程;在決定是否對壓縮音訊進行資料叢發封裝流程以後,輸出具有資料叢發封裝的壓縮音訊;透過主機接收具有資料叢發封裝的壓縮音訊,對具有資料叢發封裝的壓縮音訊進行解資料叢發封裝流程,以取得壓縮音訊。In one embodiment of the present invention, the audio conversion method proposed in the present invention includes the following steps: receiving audio through an audio conversion device, wherein the audio is compressed audio; determining whether to perform a data cluster encapsulation process on the compressed audio according to the encapsulation state of the compressed audio; after determining whether to perform a data cluster encapsulation process on the compressed audio, outputting the compressed audio with data cluster encapsulation; receiving the compressed audio with data cluster encapsulation through a host, and performing a data cluster decapsulation process on the compressed audio with data cluster encapsulation to obtain the compressed audio.

在本發明的一實施例中,本發明所提出的音訊轉換裝置與主機搭配使用,音訊轉換裝置包含接收模組、處理單元、控制單元以及傳送模組。傳送模組電性連接處理單元與控制單元,控制單元電性連接處理單元,處理單元電性連接接收模組。接收模組接收音訊,其中音訊為壓縮音訊。處理單元依據壓縮音訊的封裝狀態,決定是否對壓縮音訊進行資料叢發封裝流程。控制單元控制傳送模組輸出具有資料叢發封裝的壓縮音訊,使得主機接收具有資料叢發封裝的壓縮音訊,對具有資料叢發封裝的壓縮音訊進行解資料叢發封裝流程,以取得壓縮音訊。In one embodiment of the present invention, the audio conversion device proposed by the present invention is used in conjunction with a host, and the audio conversion device includes a receiving module, a processing unit, a control unit, and a transmitting module. The transmitting module is electrically connected to the processing unit and the control unit, the control unit is electrically connected to the processing unit, and the processing unit is electrically connected to the receiving module. The receiving module receives audio, wherein the audio is compressed audio. The processing unit determines whether to perform a data burst packaging process on the compressed audio according to the packaging state of the compressed audio. The control unit controls the transmission module to output the compressed audio with data burst encapsulation, so that the host receives the compressed audio with data burst encapsulation and performs a data burst encapsulation process on the compressed audio with data burst encapsulation to obtain the compressed audio.

綜上所述,本發明之技術方案與現有技術相比具有明顯的優點和有益效果。藉由本發明的音訊轉換方法及音訊轉換裝置,以具有資料叢發封裝的壓縮音訊進行傳輸,從而在影音擷取上獲得多聲道的壓縮音訊,可讓使用者在遊戲或影音體驗上能夠更真實的紀錄下來。In summary, the technical solution of the present invention has obvious advantages and beneficial effects compared with the prior art. By using the audio conversion method and audio conversion device of the present invention, compressed audio with data burst packaging is transmitted, thereby obtaining multi-channel compressed audio in audio and video capture, allowing users to record the game or audio and video experience more realistically.

以下將以實施方式對上述之說明作詳細的描述,並對本發明之技術方案提供更進一步的解釋。The following will describe the above description in detail with an implementation method and provide a further explanation of the technical solution of the present invention.

為了使本發明之敘述更加詳盡與完備,可參照所附之圖式及以下所述各種實施例,圖式中相同之號碼代表相同或相似之元件。另一方面,眾所週知的元件與步驟並未描述於實施例中,以避免對本發明造成不必要的限制。In order to make the description of the present invention more detailed and complete, reference may be made to the attached drawings and various embodiments described below, in which the same numbers represent the same or similar elements. On the other hand, well-known elements and steps are not described in the embodiments to avoid unnecessary limitations on the present invention.

第1圖是依照本發明一實施例之一種音訊轉換裝置100的方塊圖。如第1圖所示,音訊轉換裝置100與主機190搭配使用。實作上,舉例而言,音訊轉換裝置100可為只轉換音訊,或是影音轉換裝置,例如混音器、影音擷取裝置、影音擷取卡、擷取盒或其他裝置,在此不設限。主機190可為電腦、電視機、揚聲器、其他運算設備或前述之組合。FIG. 1 is a block diagram of an audio conversion device 100 according to an embodiment of the present invention. As shown in FIG. 1, the audio conversion device 100 is used in conjunction with a host 190. In practice, for example, the audio conversion device 100 can be a device that only converts audio, or an audio and video conversion device, such as a mixer, an audio and video capture device, an audio and video capture card, a capture box, or other devices, which are not limited here. The host 190 can be a computer, a television, a speaker, other computing equipment, or a combination of the foregoing.

在架構上,音訊轉換裝置100包含接收模組110、處理單元120、控制單元130、傳送模組140以及後端介面150。後端介面150電性連接傳送模組140,傳送模組140電性連接處理單元120與控制單元130,控制單元130電性連接處理單元120與接收模組110,處理單元120電性連接接收模組110。In terms of architecture, the audio conversion device 100 includes a receiving module 110, a processing unit 120, a control unit 130, a transmission module 140, and a back-end interface 150. The back-end interface 150 is electrically connected to the transmission module 140, the transmission module 140 is electrically connected to the processing unit 120 and the control unit 130, the control unit 130 is electrically connected to the processing unit 120 and the receiving module 110, and the processing unit 120 is electrically connected to the receiving module 110.

另外,主機190包含接收介面191、軟體執行單元192以及儲存單元193。儲存單元193電性連接軟體執行單元192,軟體執行單元192電性連接接收介面191。In addition, the host 190 includes a receiving interface 191, a software execution unit 192, and a storage unit 193. The storage unit 193 is electrically connected to the software execution unit 192, and the software execution unit 192 is electrically connected to the receiving interface 191.

於使用時,接收模組110接收音訊,其中音訊為壓縮音訊(compressed audio),即經壓縮過的音訊。處理單元120依據壓縮音訊的封裝狀態,決定是否對壓縮音訊進行資料叢發封裝(Data-Bursts encapsulation)流程。When in use, the receiving module 110 receives audio signals, wherein the audio signals are compressed audio signals. The processing unit 120 determines whether to perform a data-burst encapsulation process on the compressed audio signals according to the encapsulation state of the compressed audio signals.

當壓縮音訊的封裝狀態為未具有資料叢發封裝狀態時,處理單元120將壓縮音訊進行資料叢發封裝以產生具有資料叢發封裝的壓縮音訊。反之,當壓縮音訊的封裝狀態為具有資料叢發封裝狀態,處理單元120將壓縮音訊略過資料叢發封裝流程,換言之,處理單元120不對具有資料叢發封裝的壓縮音訊進行資料叢發封裝流程。When the encapsulation state of the compressed audio is a state without data burst encapsulation, the processing unit 120 performs data burst encapsulation on the compressed audio to generate a compressed audio with data burst encapsulation. On the contrary, when the encapsulation state of the compressed audio is a state with data burst encapsulation, the processing unit 120 skips the data burst encapsulation process for the compressed audio. In other words, the processing unit 120 does not perform the data burst encapsulation process on the compressed audio with data burst encapsulation.

接下來,控制單元130控制傳送模組140輸出具有資料叢發封裝的壓縮音訊,使得主機190接收具有資料叢發封裝的壓縮音訊,對具有資料叢發封裝的壓縮音訊進行解資料叢發封裝流程,以取得壓縮音訊。在本發明的一些實施例中,主機190取得壓縮音訊的音訊格式資訊,主機190依據音訊格式資訊,對具有資料叢發封裝的壓縮音訊進行解資料叢發封裝流程。Next, the control unit 130 controls the transmission module 140 to output the compressed audio with data burst encapsulation, so that the host 190 receives the compressed audio with data burst encapsulation and performs a data burst decapsulation process on the compressed audio with data burst encapsulation to obtain the compressed audio. In some embodiments of the present invention, the host 190 obtains the audio format information of the compressed audio, and the host 190 performs a data burst decapsulation process on the compressed audio with data burst encapsulation according to the audio format information.

關於上述音訊格式資訊,接收模組110或處理單元120偵測壓縮音訊的音訊格式資訊,當控制單元130判定音訊格式資訊與前次偵測到的音訊格式資訊不同時,控制單元130控制傳送模組140做重新連接。Regarding the above-mentioned audio format information, the receiving module 110 or the processing unit 120 detects the audio format information of the compressed audio. When the control unit 130 determines that the audio format information is different from the audio format information detected last time, the control unit 130 controls the transmission module 140 to reconnect.

關於音訊轉換裝置100的架構,在一些實施例中,音訊轉換裝置100的輸入介面(未繪示)可為高畫質多媒體介面(HDMI)、顯示埠(DP)、索尼/飛利浦數位介面格式(SPDIF)、調諧器(Tuner)、網際網路(Internet)、線路輸入(Line in)、3.5mm音源介面…等,其中HDMI、DP、SPDIF使用具有資料叢發封裝的壓縮音訊,Tuner與Internet使用一般壓縮音訊,Line in與3.5mm音源介面使用未壓縮音訊。在一些實施例中,輸入介面可電性連接或整合至接收模組110。Regarding the structure of the audio conversion device 100, in some embodiments, the input interface (not shown) of the audio conversion device 100 can be a high-definition multimedia interface (HDMI), a display port (DP), a Sony/Philips digital interface format (SPDIF), a tuner (Tuner), the Internet (Internet), a line input (Line in), a 3.5mm audio source interface, etc., wherein HDMI, DP, and SPDIF use compressed audio with data burst encapsulation, Tuner and Internet use general compressed audio, and Line in and a 3.5mm audio source interface use uncompressed audio. In some embodiments, the input interface can be electrically connected or integrated to the receiving module 110.

在一些實施例中,接收模組110接收影音源(Video/Audio Source)。接收模組110可為接收器,例如影音接收器或音訊接收器,舉例來說,HDMI接收器、DP接收器、SPDIF接收器、Tuner接收器、Internet接收器、Line in接收器、3.5mm接收器…等。在其他實施例中,接收模組110也可以是收發器。在一些實施例中,接收模組110可偵測音源(Audio Source)(如:音訊)的格式。In some embodiments, the receiving module 110 receives a video/audio source. The receiving module 110 may be a receiver, such as a video/audio receiver or an audio receiver, for example, an HDMI receiver, a DP receiver, an SPDIF receiver, a Tuner receiver, an Internet receiver, a Line in receiver, a 3.5mm receiver, etc. In other embodiments, the receiving module 110 may also be a transceiver. In some embodiments, the receiving module 110 may detect the format of an audio source (e.g., audio).

在一些實施例中,處理單元120依據音源(Audio Source)的格式進行音訊封裝。處理單元120可為硬體、軟體、軟韌體搭配與組合,例如是處理器(processor)、微控制單元(MCU)、系統單晶片(SoC)、現場可程式化閘陣列(FPGA)、聲音處理單元、數位訊號處理器(DSP)、處理電路…等。在一些實施例中,處理單元120可偵測音源(Audio Source)的格式。In some embodiments, the processing unit 120 performs audio packaging according to the format of the audio source. The processing unit 120 can be a combination of hardware, software, and firmware, such as a processor, a microcontroller unit (MCU), a system on a chip (SoC), a field programmable gate array (FPGA), a sound processing unit, a digital signal processor (DSP), a processing circuit, etc. In some embodiments, the processing unit 120 can detect the format of the audio source.

在一些實施例中,控制單元130依據接收模組110及/或處理單元120的偵測結果(音源的格式)決定傳送模式,發送命令(command)給傳送模組140。控制單元130可為微控制器(microcontroller)、系統單晶片(SoC)或控制電路。偵測結果(音源的格式)與前次不同時,控制單元130發送命令給傳送模組140做重新連接(relink)。In some embodiments, the control unit 130 determines the transmission mode according to the detection result (format of the sound source) of the receiving module 110 and/or the processing unit 120, and sends a command to the transmission module 140. The control unit 130 can be a microcontroller, a system on a chip (SoC) or a control circuit. When the detection result (format of the sound source) is different from the previous time, the control unit 130 sends a command to the transmission module 140 to reconnect.

傳送模組140將音訊資料(例如具有資料叢發封裝的壓縮音訊)封裝(Packet)成音訊資料封包(例如通用序列匯流排(USB)封包等)後,傳送音訊資料封包。傳送模組140可以例如是USB橋接器(Bridge)。The transmission module 140 packets the audio data (such as compressed audio with data burst encapsulation) into audio data packets (such as Universal Serial Bus (USB) packets, etc.) and then transmits the audio data packets. The transmission module 140 may be, for example, a USB bridge.

在一些實施例中,接收模組110、處理單元120、控制單元130、傳送模組140可以是獨立元件(電路)、部分或全部整合在同一顆SoC。In some embodiments, the receiving module 110, the processing unit 120, the control unit 130, and the transmitting module 140 may be independent components (circuits), or partially or completely integrated into the same SoC.

關於主機190的架構,在一些實施例中,接收介面191可為數位音訊輸入介面,例如USB Bridge用於USB解封包,接收音訊資料(Audio data)、音訊格式。Regarding the architecture of the host 190, in some embodiments, the receiving interface 191 can be a digital audio input interface, such as a USB Bridge for USB decapsulation, receiving audio data, and audio format.

在一些實施例中,軟體執行單元192可為處理器或處理電路,儲存單元193可為硬碟、快閃記憶體或其他儲存電路。軟體執行單元192用於執行所儲存的一軟體,例如:USB音頻類別驅動程式(UAC Driver)、外掛程式(Plugin)、應用程式等,其中軟體可以儲存於儲存單元193中,也可以儲存於另一儲存單元中,在此不設限。於一些實施例中,壓縮音訊可以透過執行單一軟體取得,例如執行USB音頻類別驅動程式(UAC Driver)、外掛程式(Plugin)或應用程式,或是透過執行複數個軟體搭配取得,例如USB音頻類別驅動程式(UAC Driver)、外掛程式(Plugin)、應用程式等前述之組合。舉例來說,例如可以藉由USB音頻類別驅動程式接收音訊、偵測音訊的音訊格式,若音訊格式是未壓縮音訊的音訊格式,儲存單元193儲存未壓縮音訊,反之,若音訊格式是壓縮音訊的音訊格式,外掛程式對於具有資料叢發封裝的音訊進行解資料叢發封裝流程,以取得壓縮音訊,儲存單元193儲存壓縮音訊。In some embodiments, the software execution unit 192 may be a processor or a processing circuit, and the storage unit 193 may be a hard disk, a flash memory, or other storage circuits. The software execution unit 192 is used to execute a stored software, such as a USB audio class driver (UAC Driver), a plug-in (Plugin), an application, etc., wherein the software can be stored in the storage unit 193 or in another storage unit, which is not limited here. In some embodiments, compressed audio can be obtained by executing a single software, such as executing a USB audio class driver (UAC Driver), a plug-in (Plugin), or an application, or by executing a plurality of software in combination, such as a USB audio class driver (UAC Driver), a plug-in (Plugin), an application, or the like. For example, the USB audio class driver can be used to receive audio and detect the audio format of the audio. If the audio format is an uncompressed audio format, the storage unit 193 stores the uncompressed audio. Conversely, if the audio format is a compressed audio format, the plug-in performs a data cluster encapsulation process on the audio with data cluster encapsulation to obtain compressed audio, and the storage unit 193 stores the compressed audio.

另外,音訊轉換裝置100支援音訊直通(Audio Pass-through)功能,Audio Pass-through可將來源於HDMI、DP、SPDIF、Tuner、Internet的音訊傳遞給音訊轉換裝置100所外接的放大器(未繪示)進行播放,舉例來說,音訊轉換裝置100包含分流模組。例如分流器(splitter)與接收模組110連接,分流來源於HDMI、DP、SPDIF、Tuner、Internet的音訊,傳遞一路給音訊轉換裝置100所外接的放大器。In addition, the audio conversion device 100 supports an audio pass-through function, which can transmit audio signals from HDMI, DP, SPDIF, Tuner, and the Internet to an amplifier (not shown) connected to the audio conversion device 100 for playback. For example, the audio conversion device 100 includes a splitter module. For example, a splitter is connected to the receiving module 110 to split the audio signals from HDMI, DP, SPDIF, Tuner, and the Internet and transmit them to the amplifier connected to the audio conversion device 100.

為了對上述音訊轉換裝置100搭配主機190使用的方法做更進一步的闡述,請同時參照第1~2圖,第2圖是依照本發明一實施例之一種音訊轉換方法200的流程圖。本實施例之音訊轉換方法可為只轉換音訊之方法,或是轉換影音之方法,在此不設限。如第2圖所示,音訊轉換方法200包含步驟S201~S206(應瞭解到,在本實施例中所提及的步驟,除特別敘明其順序者外,均可依實際需要調整其前後順序,甚至可同時或部分同時執行)。In order to further explain the method of using the above-mentioned audio conversion device 100 with the host 190, please refer to Figures 1 and 2 at the same time. Figure 2 is a flow chart of an audio conversion method 200 according to an embodiment of the present invention. The audio conversion method of this embodiment can be a method for converting only audio, or a method for converting audio and video, which is not limited here. As shown in Figure 2, the audio conversion method 200 includes steps S201 to S206 (it should be understood that the steps mentioned in this embodiment, except for those whose order is specifically described, can be adjusted in order according to actual needs, and can even be executed simultaneously or partially simultaneously).

於步驟S201,透過音訊轉換裝置100接收音訊,音訊可為壓縮音訊。於步驟S202,依據壓縮音訊的封裝狀態,決定是否對壓縮音訊進行資料叢發封裝流程。在決定是否對壓縮音訊進行資料叢發封裝流程以後,於步驟S203,輸出並傳送具有資料叢發封裝的壓縮音訊給主機190。於步驟S204,透過主機190接收具有資料叢發封裝的壓縮音訊。於步驟S205,主機190對具有資料叢發封裝的壓縮音訊進行解資料叢發封裝流程,以取得壓縮音訊。In step S201, audio is received through the audio conversion device 100, and the audio may be a compressed audio. In step S202, it is determined whether to perform a data burst encapsulation process on the compressed audio according to the encapsulation state of the compressed audio. After determining whether to perform a data burst encapsulation process on the compressed audio, in step S203, the compressed audio with the data burst encapsulation is output and transmitted to the host 190. In step S204, the compressed audio with the data burst encapsulation is received through the host 190. In step S205, the host 190 performs a data burst decapsulation process on the compressed audio signal having the data burst encapsulation to obtain the compressed audio signal.

關於步驟S203,當壓縮音訊的封裝狀態為未具有資料叢發封裝狀態時,音訊轉換裝置100將壓縮音訊進行資料叢發封裝以產生具有資料叢發封裝的壓縮音訊。反之,當壓縮音訊的封裝狀態為具有資料叢發封裝狀態,將壓縮音訊略過資料叢發封裝流程,換言之,處理單元120不對具有資料叢發封裝的壓縮音訊進行資料叢發封裝流程。Regarding step S203, when the encapsulation state of the compressed audio is not in the data burst encapsulation state, the audio conversion device 100 performs data burst encapsulation on the compressed audio to generate a compressed audio with data burst encapsulation. On the contrary, when the encapsulation state of the compressed audio is in the data burst encapsulation state, the compressed audio skips the data burst encapsulation process. In other words, the processing unit 120 does not perform the data burst encapsulation process on the compressed audio with data burst encapsulation.

另一方面,於步驟S206,主機190取得壓縮音訊的音訊格式資訊。於一些實施例中,音訊轉換裝置100偵測壓縮音訊的以得到音訊格式資訊,然後主機190取得相對應的音訊格式資訊。於一些實施例中,於步驟S206之前可以更包含第一步驟與第二步驟,其中第一步驟是由音訊轉換裝置100取得壓縮音訊的音訊格式資訊,例如透過接收模組110或處理單元120偵測壓縮音訊以取得音訊格式資訊;第二步驟,音訊轉換裝置100可以輸出音訊格式資訊。於一些實施例中所輸出之音訊格式資訊可以依據實際需求而有所變化,例如可以是音訊格式資訊本身,又或者是整合(integrate)音訊格式資訊與其他輔助資訊(例如資料叢發封裝狀態、傳輸模式、聲道數及/或取樣率等),在此不設限。在本實施例中,步驟S206,主機190所取得的音訊格式資訊可以是來自步驟S2062的音訊格式資訊。於步驟S205,主機190依據音訊格式資訊,對具有資料叢發封裝的壓縮音訊進行解資料叢發封裝流程。On the other hand, in step S206, the host 190 obtains the audio format information of the compressed audio. In some embodiments, the audio conversion device 100 detects the compressed audio to obtain the audio format information, and then the host 190 obtains the corresponding audio format information. In some embodiments, before step S206, a first step and a second step may be further included, wherein the first step is for the audio conversion device 100 to obtain the audio format information of the compressed audio, for example, by detecting the compressed audio through the receiving module 110 or the processing unit 120 to obtain the audio format information; in the second step, the audio conversion device 100 may output the audio format information. In some embodiments, the audio format information outputted may vary according to actual needs, for example, it may be the audio format information itself, or it may be an integrated audio format information and other auxiliary information (such as data burst encapsulation status, transmission mode, number of channels and/or sampling rate, etc.), which is not limited here. In this embodiment, in step S206, the audio format information obtained by the host 190 may be the audio format information from step S2062. In step S205, the host 190 performs a data burst encapsulation process on the compressed audio with data burst encapsulation according to the audio format information.

請同時參照第1~3圖,第3圖是依照本發明另一實施例之一種音訊轉換方法300的流程圖。如第3圖所示,音訊轉換方法300包含步驟S301~S320,第3圖中虛線以上的步驟主要由音訊轉換裝置100來執行,虛線以下的步驟主要由主機190來執行,但不以此為限。Please refer to FIGS. 1 to 3 at the same time. FIG. 3 is a flow chart of an audio conversion method 300 according to another embodiment of the present invention. As shown in FIG. 3, the audio conversion method 300 includes steps S301 to S320. The steps above the dotted line in FIG. 3 are mainly performed by the audio conversion device 100, and the steps below the dotted line are mainly performed by the host 190, but not limited thereto.

於步驟S301,音訊來源端輸出音訊給接收模組110。接收模組110透過輸入介面(HDMI、DP、SPDIF、Tuner、Internet、Line in、3.5mm…等)接收音訊。In step S301, the audio source outputs the audio to the receiving module 110. The receiving module 110 receives the audio through an input interface (HDMI, DP, SPDIF, Tuner, Internet, Line in, 3.5mm, etc.).

於步驟S302,接收模組110根據不同輸入介面使用對應的方式解除封裝(例如:IEC60958或ISO/IEC13818)得到解除封裝的音訊。例如,輸入介面為HDMI介面,接收模組110解除HDMI封裝(例如:IEC60958)得到解除封裝的音訊。在一些實施例中,在音訊轉換裝置100接收到電源(來自主機190或電源轉接器)後啟動步驟S301、S302。在一些實施例中,音訊轉換裝置100包含分流模組。例如分流器,用以將接收到的音訊分流至其他元件或其他裝置。In step S302, the receiving module 110 uses a corresponding method to unpack the audio according to different input interfaces (for example, IEC60958 or ISO/IEC13818) to obtain the unpacked audio. For example, the input interface is an HDMI interface, and the receiving module 110 unpacks the HDMI package (for example, IEC60958) to obtain the unpacked audio. In some embodiments, steps S301 and S302 are started after the audio conversion device 100 receives power (from the host 190 or the power adapter). In some embodiments, the audio conversion device 100 includes a shunt module. For example, a shunt is used to shunt the received audio to other components or other devices.

於步驟S303,接收模組110將解除封裝的音訊傳送給處理單元120。處理單元120接收解除封裝的音訊並解析(Parsing)解除封裝的音訊,以取得解除封裝的音訊的封裝狀態。舉例而言,PCM雙聲道的封裝狀態為原始(raw)狀態,杜比數位5.1聲道的封裝狀態為IEC61937_AC-3_DataBurst。In step S303, the receiving module 110 transmits the decapsulated audio signal to the processing unit 120. The processing unit 120 receives the decapsulated audio signal and parses the decapsulated audio signal to obtain the encapsulation state of the decapsulated audio signal. For example, the encapsulation state of PCM two-channel is the original (raw) state, and the encapsulation state of Dolby Digital 5.1 channel is IEC61937_AC-3_DataBurst.

於步驟S304,控制單元130取得(壓縮音訊的)音訊格式資訊。舉例來說,可透過接收模組110或處理單元120偵測壓縮音訊以取得音訊格式資訊,例如接收模組110或處理單元120透過解析解除封裝的音訊,以取得音訊格式資訊,傳送給控制單元130。其中音訊格式例如是PCM、AC-3(杜比數位)、EAC-3(杜比數位+)、MPEG音訊(Layer I II III IV (AAC))、DTS、WMA、ATRAC、MAT、DRA;音訊格式資訊可以是音訊內容的表頭資訊之一,用於說明音訊的音訊格式。In step S304, the control unit 130 obtains audio format information (of the compressed audio). For example, the compressed audio can be detected by the receiving module 110 or the processing unit 120 to obtain the audio format information. For example, the receiving module 110 or the processing unit 120 obtains the audio format information by parsing the unpacked audio and transmits it to the control unit 130. The audio format is, for example, PCM, AC-3 (Dolby Digital), EAC-3 (Dolby Digital Plus), MPEG audio (Layer I II III IV (AAC)), DTS, WMA, ATRAC, MAT, DRA; the audio format information can be one of the header information of the audio content, which is used to describe the audio format of the audio.

於步驟S305,依據音訊格式資訊決定傳輸模式。控制單元130取得音訊格式資訊,依據音訊格式資訊決定傳輸模式。在一些實施例中,控制單元130判斷音訊格式資訊為第一音訊類別(未壓縮音訊)、第二音訊類別(壓縮音訊),依據第一音訊類別(未壓縮音訊)、第二音訊類別(壓縮音訊)決定第一傳輸模式或第二傳輸模式,告知傳送模組140(例如USB模組,做USB封包轉換與傳送)使用對應之模式傳輸。第一傳輸模式為USB音頻類別音頻資料格式第一類(UAC Type I),第二傳輸模式為USB音頻類別音頻資料格式第三類(UAC Type III)。In step S305, the transmission mode is determined according to the audio format information. The control unit 130 obtains the audio format information and determines the transmission mode according to the audio format information. In some embodiments, the control unit 130 determines that the audio format information is a first audio category (uncompressed audio) or a second audio category (compressed audio), and determines the first transmission mode or the second transmission mode according to the first audio category (uncompressed audio) or the second audio category (compressed audio), and informs the transmission module 140 (for example, a USB module for USB packet conversion and transmission) to use the corresponding mode for transmission. The first transmission mode is USB audio category audio data format type I (UAC Type I), and the second transmission mode is USB audio category audio data format type III (UAC Type III).

於步驟S306b,當音訊格式資訊為未壓縮音訊時,控制單元130告知傳送模組140將傳輸模式設定為第一傳輸模式,使用第一傳輸封包(例如:傳輸UAC Type I封包)。In step S306b, when the audio format information is uncompressed audio, the control unit 130 informs the transmission module 140 to set the transmission mode to the first transmission mode and use the first transmission packet (eg, transmitting UAC Type I packet).

於步驟S306a,當音訊格式資訊為壓縮音訊時,控制單元130告知傳送模組140將傳輸模式設定為第一傳輸模式,使用第一傳輸模式(例如:傳輸UAC Type I 封包)傳輸。或是將傳輸模式設定第二傳輸模式,使用第二傳輸封包(例如:傳輸UAC Type III封包)。於一些實施例中,控制單元130係依據當音訊格式資訊為壓縮音訊時預設使用第一傳輸模式或第二傳輸模式,告知傳送模組將傳輸模式設定為第一傳輸模式或第二傳輸模式。In step S306a, when the audio format information is compressed audio, the control unit 130 informs the transmission module 140 to set the transmission mode to the first transmission mode and use the first transmission mode (e.g., transmit UAC Type I packets) for transmission. Or, the transmission mode is set to the second transmission mode and uses the second transmission packet (e.g., transmit UAC Type III packets). In some embodiments, the control unit 130 informs the transmission module to set the transmission mode to the first transmission mode or the second transmission mode according to the first transmission mode or the second transmission mode being used by default when the audio format information is compressed audio.

在一些實施例中,當控制單元130判斷傳輸模式、音訊格式資訊或聲道數資訊有變更,傳送模組140需做描述符之修改(例如可以是有變更才會修改,也可以是每次偵測每次修改描述符),並做一次重新連接(relink)。舉例而言,本次的描述符1的傳輸模式為FORMAT_TYPE_I、音訊格式資訊為PCM以及聲道數為2,而前次的描述符2的傳輸模式為FORMAT_TYPE_III、音訊格式資訊為IEC61937_AC-3,描述符有修改,控制單元130控制傳送模組140做重新連接,從而重新決定傳輸模式,以避免錯誤。In some embodiments, when the control unit 130 determines that the transmission mode, audio format information, or number of channels information has changed, the transmission module 140 needs to modify the descriptor (for example, it can be modified only when there is a change, or it can be modified every time the descriptor is detected) and relink. For example, the transmission mode of the current descriptor 1 is FORMAT_TYPE_I, the audio format information is PCM, and the number of channels is 2, while the transmission mode of the previous descriptor 2 is FORMAT_TYPE_III, and the audio format information is IEC61937_AC-3. The descriptor has been modified, and the control unit 130 controls the transmission module 140 to reconnect, thereby re-determining the transmission mode to avoid errors.

於步驟S307,控制單元130依據前述步驟的音訊格式資訊,輸出相對應的音訊格式資訊至主機190。於本實施例中,所輸出之音訊格式資訊可以依據實際需求而有所變化,例如可以是音訊格式資訊本身,又或者是整合(integrate)音訊格式資訊與其他輔助資訊(例如資料叢發封裝狀態、傳輸模式、聲道數及/或取樣率等),在此不設限。舉例而言,PCM雙聲道的音訊格式資訊為PCM、傳輸模式為Type I(格式:PCM)、整合的音訊格式資訊為PCM;杜比數位5.1聲道的音訊格式資訊為AC-3、傳輸模式為Type III(格式:IEC61937_AC-3)、整合的音訊格式資訊可依據杜比音訊格式而定義之、具有資料叢發封裝的狀態與傳輸模式可以為IEC61937_AC-3_DataBurst。於一些實施例,可省略步驟S307。In step S307, the control unit 130 outputs the corresponding audio format information to the host 190 according to the audio format information in the above step. In this embodiment, the output audio format information can be changed according to actual needs, for example, it can be the audio format information itself, or it can be an integrated audio format information and other auxiliary information (such as data burst packaging state, transmission mode, number of channels and/or sampling rate, etc.), which is not limited here. For example, the audio format information of PCM two-channel is PCM, the transmission mode is Type I (format: PCM), and the integrated audio format information is PCM; the audio format information of Dolby Digital 5.1 channel is AC-3, the transmission mode is Type III (format: IEC61937_AC-3), and the integrated audio format information can be defined according to the Dolby audio format, and the state of data burst encapsulation and the transmission mode can be IEC61937_AC-3_DataBurst. In some embodiments, step S307 can be omitted.

於步驟S308,主機190取得(壓縮音訊的)一音訊格式資訊。於一實施例中,主機190可利用自定義溝通方式將取得來自音訊轉換裝置100(壓縮音訊)的音訊格式資訊(來自步驟S307),換言之,音訊轉換裝置100可利用自定義溝通方式將音訊格式資訊傳遞給主機190。舉例而言,自定義溝通方式例如可為USB擴充命令(USB extension cmd)、人體介面裝置報告(HID report)…等。藉由音訊格式資訊,使音訊轉換裝置100的後端介面150(例如USB介面)與主機190的接收介面191(USB介面)得以建立傳輸。In step S308, the host 190 obtains audio format information (of compressed audio). In one embodiment, the host 190 can use a custom communication method to obtain the audio format information (from step S307) from the audio conversion device 100 (compressed audio). In other words, the audio conversion device 100 can use a custom communication method to transmit the audio format information to the host 190. For example, the custom communication method can be a USB extension command (USB extension cmd), a human interface device report (HID report), etc. Through the audio format information, the back-end interface 150 (such as a USB interface) of the audio conversion device 100 and the receiving interface 191 (USB interface) of the host 190 can establish transmission.

於步驟S309,主機190的軟體啟動單元192啟動音訊轉換裝置100進行串流。In step S309, the software activation unit 192 of the host 190 activates the audio conversion device 100 for streaming.

於步驟S310,判斷音訊格式資訊是否為壓縮音訊。In step S310, it is determined whether the audio format information is compressed audio.

於步驟S313,音訊轉換裝置100的控制單元130會根據音訊格式資訊及封裝狀態去設定處理單元120,處理得到可傳送(transfer)的音訊。當音訊格式資訊為未壓縮音訊時,控制單元130將主機190的設定傳遞給處理單元120,得到可傳送的音訊。其中可傳送的音訊的格式為符合非壓縮音訊的格式。In step S313, the control unit 130 of the audio conversion device 100 sets the processing unit 120 according to the audio format information and the packaging state to process and obtain the audio that can be transferred. When the audio format information is uncompressed audio, the control unit 130 transmits the setting of the host 190 to the processing unit 120 to obtain the audio that can be transferred. The format of the audio that can be transferred is a format that conforms to the format of uncompressed audio.

於步驟S311,當音訊格式資訊為壓縮音訊時,控制單元130根據音訊格式資訊與封裝狀態去控制處理單元120進行資料叢發封裝。In step S311, when the audio format information is compressed audio, the control unit 130 controls the processing unit 120 to perform data burst encapsulation according to the audio format information and the encapsulation state.

於步驟S312,當封裝狀態為未具有資料叢發封裝狀態時,壓縮音訊需進行資料叢發(如:IEC61937 Data-Burst format)封裝,將壓縮音訊封裝成資料叢發封包(具有資料叢發封裝的壓縮音訊),得到可傳送的音訊。In step S312, when the encapsulation state is not in the data burst encapsulation state, the compressed audio needs to be encapsulated in a data burst (such as IEC61937 Data-Burst format) to encapsulate the compressed audio into a data burst packet (compressed audio with data burst encapsulation) to obtain a transmittable audio.

當封裝狀態為具有資料叢發封裝狀態時,壓縮音訊即為資料叢發封包,不須封裝,直接得到可傳送的音訊。When the encapsulation state is a data burst encapsulation state, the compressed audio is the data burst packet, and no encapsulation is required, and the transmittable audio is directly obtained.

於步驟S314,生成音訊傳送封包。於本實施例中,傳送模組140將可傳送的音訊,生成對應後端介面之音訊傳送封包,舉例來說,傳送模組140接收來自處理單元120的可傳送的音訊,將可傳送的音訊生成對應後端介面150之音訊傳送封包,例如做USB封裝以得到USB封裝的音訊。將USB封裝的音訊傳送給主機190。In step S314, an audio transmission packet is generated. In this embodiment, the transmission module 140 generates an audio transmission packet corresponding to the back-end interface from the transmittable audio. For example, the transmission module 140 receives the transmittable audio from the processing unit 120, generates an audio transmission packet corresponding to the back-end interface 150 from the transmittable audio, such as performing USB encapsulation to obtain USB-encapsulated audio. The USB-encapsulated audio is transmitted to the host 190.

於步驟S315,主機190接收USB封裝的音訊,解除USB封裝,得到可傳送的音訊。舉例來說,例如可以在接收介面191(例如USB Bridge)解除USB封裝,得到可傳送的音訊。在其他實施例中,主機190可以依實際狀況在不同地方處理解除USB封裝。In step S315, the host 190 receives the USB-encapsulated audio signal, removes the USB encapsulation, and obtains the transmittable audio signal. For example, the USB encapsulation can be removed at the receiving interface 191 (such as USB Bridge) to obtain the transmittable audio signal. In other embodiments, the host 190 can remove the USB encapsulation at different locations according to actual conditions.

主機190將可傳送的音訊經過解封裝處理,得到壓縮音訊。軟體執行單元192所執行的軟體,例如外掛程式(例如非無壓縮音訊支援套件)會以以下步驟,將驅動程式(例如UAC driver)接收到的可傳送的音訊還原,得到原始音訊。The host 190 decapsulates the transmittable audio to obtain compressed audio. The software executed by the software execution unit 192, such as a plug-in (such as a non-uncompressed audio support package), restores the transmittable audio received by the driver (such as a UAC driver) to obtain the original audio in the following steps.

上述驅動程式(driver)在步驟S308取得以下資訊:從UAC描述符(UAC descriptor)讀到傳輸模式、透過自定義溝通方式(如:USB extension cmd、 HID report…等)得到音訊格式資訊。外掛程式根據不同音訊格式資訊做處理,得到原始音訊。The driver obtains the following information in step S308: reads the transmission mode from the UAC descriptor, and obtains the audio format information through a custom communication method (such as USB extension cmd, HID report, etc.). The plug-in processes the different audio format information to obtain the original audio.

於步驟S316,上述外掛程式查詢音訊格式資訊是否為壓縮音訊。當音訊格式資訊是未壓縮音訊,不須處理,可傳送的音訊即為原始音訊,例如PCM。In step S316, the plug-in program queries the audio format information to determine whether it is compressed audio. When the audio format information is uncompressed audio, no processing is required, and the audio that can be transmitted is the original audio, such as PCM.

於步驟S320,在還原出原始音訊後,應用程式(例如媒體播放器、影音編輯軟體等)此時可以進行擷取及後續的播放。In step S320, after the original audio is restored, the application (such as a media player, video editing software, etc.) can now capture and subsequently play the audio.

於步驟S317,當音訊格式資訊是壓縮音訊時,將可傳送的音訊交由外掛程式,外掛程式根據音訊格式資訊使用相對應的方式,解除資料叢發(如:IEC61937 data-burst format)封裝得到壓縮音訊。外掛程式會根據後續其他功能應用(例如直播、影音編輯等),將壓縮音訊進行再處理。In step S317, when the audio format information is compressed audio, the transmittable audio is handed over to the plug-in, and the plug-in uses the corresponding method according to the audio format information to decapsulate the data burst (such as: IEC61937 data-burst format) to obtain the compressed audio. The plug-in will reprocess the compressed audio according to other subsequent functional applications (such as live broadcast, video editing, etc.).

於步驟S318,判斷後續其他功能應用是否為預設應用程式(如:自行開發的應用程式)。In step S318, it is determined whether the subsequent other functional applications are default applications (eg, self-developed applications).

若後續其他功能應用為第三方應用程式,於步驟S319a,因第三方應用程式無法得知音訊格式資訊,故外掛程式會根據音訊格式資訊使用相對應的音訊解碼器(Audio Decoder)將壓縮音訊解碼為壓縮音訊,再傳送給後端進行擷取或播放。If the subsequent other functional applications are third-party applications, in step S319a, since the third-party application cannot know the audio format information, the plug-in will use the corresponding audio decoder (Audio Decoder) according to the audio format information to decode the compressed audio into compressed audio, and then send it to the back end for capture or playback.

若後續其他功能應用為預設應用程式(如:自行開發的應用程式),於步驟S319b,自行開發的應用程式可透過自定義溝通方式(如:USB extension cmd、HID report…等)得到音訊格式資訊,自行開發的應用程式可以用此資訊來進行壓縮音訊的擷取或後製(先解碼再重新編碼)及後續的播放。同時通知外掛程式無須進行再處理。If the subsequent other functional applications are default applications (such as self-developed applications), in step S319b, the self-developed applications can obtain audio format information through customized communication methods (such as USB extension cmd, HID report, etc.), and the self-developed applications can use this information to capture or post-produce (decode first and then re-encode) the compressed audio and subsequent playback. At the same time, the plug-in is notified that no further processing is required.

於一些實施例中,音訊轉換裝置100包含輸入監控單元(如:輸入監控電路),用於監控輸入音訊是否異常。當音訊變更時,需重新偵測音訊格式(Audio Format),回到步驟S303、S304。In some embodiments, the audio conversion device 100 includes an input monitoring unit (eg, input monitoring circuit) for monitoring whether the input audio is abnormal. When the audio changes, the audio format needs to be re-detected, and the process returns to steps S303 and S304.

綜合以上,於音訊轉換方法300,具有資料叢發封裝的壓縮音訊的格式符合非壓縮音訊的格式,藉此,壓縮音訊可預設使用第一傳輸模式(UAC Type I),或壓縮音訊亦可預設使用第二傳輸模式(UAC Type III),從而實現壓縮音訊透過USB介面的多元化傳輸方式。In summary, in the audio conversion method 300, the format of the compressed audio with data burst encapsulation conforms to the format of the uncompressed audio, thereby, the compressed audio can be preset to use the first transmission mode (UAC Type I), or the compressed audio can also be preset to use the second transmission mode (UAC Type III), thereby realizing a diversified transmission method of compressed audio through the USB interface.

請同時參照第1~4圖,第4圖是依照本發明又一實施例之一種音訊轉換方法400的流程圖。如第4圖所示,音訊轉換方法400包含步驟S401~S423,第4圖中虛線以上的步驟主要由音訊轉換裝置100來執行,虛線以下的步驟主要由主機190來執行,但不以此為限。Please refer to Figures 1 to 4 at the same time. Figure 4 is a flow chart of an audio conversion method 400 according to another embodiment of the present invention. As shown in Figure 4, the audio conversion method 400 includes steps S401 to S423. The steps above the dotted line in Figure 4 are mainly performed by the audio conversion device 100, and the steps below the dotted line are mainly performed by the host 190, but not limited to this.

第4圖的步驟S401~S405、S406b與第3圖的步驟S301~S305、S306b實質上相同,故不再贅述之。Steps S401-S405, S406b of FIG. 4 are substantially the same as steps S301-S305, S306b of FIG. 3, and thus will not be described in detail.

於步驟S406a,傳送模組140使用第二傳輸模式(UAC Type III)。於一些實施例中,可省略步驟S406a。In step S406a, the transmission module 140 uses the second transmission mode (UAC Type III). In some embodiments, step S406a may be omitted.

於步驟S407,音訊轉換裝置100接收來自主機190支援性資訊。舉例來說,主機190安裝的軟體(例如:外掛程式)負責分析並判斷此軟體所安裝的系統是否可支援第二傳輸模式 (UAC Type III)封包。當主機190認到音訊轉換裝置100後,將分析結果是否可支援第二傳輸模式(UAC Type III)封包的資訊以自定義溝通方式(如:USB extension cmd、HID report…)告知音訊轉換裝置100。音訊轉換裝置100接收來自主機190支援性資訊,例如支援第二傳輸模式(UAC Type III)。In step S407, the audio conversion device 100 receives support information from the host 190. For example, the software (e.g., plug-in) installed on the host 190 is responsible for analyzing and determining whether the system on which the software is installed can support the second transmission mode (UAC Type III) packet. When the host 190 recognizes the audio conversion device 100, the analysis result is used to inform the audio conversion device 100 of whether the second transmission mode (UAC Type III) packet can be supported in a custom communication method (e.g., USB extension cmd, HID report, etc.). The audio conversion device 100 receives support information from the host 190, such as support for the second transmission mode (UAC Type III).

於步驟S408,控制單元130根據是否可支援第二傳輸模式(UAC Type III)的封包資訊做出以下不同處理。In step S408, the control unit 130 performs the following different processing according to the packet information of whether the second transmission mode (UAC Type III) is supported.

若支援第二傳輸模式(UAC Type III),控制單元130告知傳送模組140將傳輸模式設定為第二傳輸模式(例如:傳輸 UAC Type III 封包)。If the second transmission mode (UAC Type III) is supported, the control unit 130 informs the transmission module 140 to set the transmission mode to the second transmission mode (for example: transmitting UAC Type III packets).

若不支援第二傳輸模式(UAC Type III),於步驟S409,控制單元130告知傳送模組140將傳輸模式設定為第一傳輸模式(例如:傳輸UAC Type I 封包)。If the second transmission mode (UAC Type III) is not supported, in step S409, the control unit 130 informs the transmission module 140 to set the transmission mode to the first transmission mode (eg, transmitting UAC Type I packets).

於步驟S410,控制單元130根據收到音訊格式資訊以及是否可支援第二傳輸模式封包的資訊,整合(integrate)出音訊格式資訊,可利用自定義溝通方式 (如:USB extension cmd、HID report…等)傳遞給主機190。於一些實施例中,所輸出之音訊格式資訊可以依據實際需求而有所變化,例如可以是音訊格式資訊本身,又或者是整合(integrate)音訊格式資訊與其他輔助資訊(例如資料叢發封裝狀態、傳輸模式、聲道數及/或取樣率等),在此不設限。In step S410, the control unit 130 integrates the audio format information according to the received audio format information and the information whether the second transmission mode packet can be supported, and can be transmitted to the host 190 using a custom communication method (such as USB extension cmd, HID report, etc.). In some embodiments, the output audio format information can be changed according to actual needs, for example, it can be the audio format information itself, or it can be the integrated audio format information and other auxiliary information (such as data burst packaging status, transmission mode, number of channels and/or sampling rate, etc.), which is not limited here.

舉例而言,PCM雙聲道的音訊格式資訊為PCM,無論是否支援第二傳輸模式(UAC Type III)的資訊,傳輸模式設定為第一傳輸模式(UAC Type I(格式:PCM)),整合的音訊格式資訊為PCM。For example, the audio format information of PCM two-channel is PCM, regardless of whether the information of the second transmission mode (UAC Type III) is supported, the transmission mode is set to the first transmission mode (UAC Type I (format: PCM)), and the integrated audio format information is PCM.

舉例而言,杜比數位5.1聲道的音訊格式資訊為AC-3,不支援第二傳輸模式(UAC Type III),傳輸模式設定為第一傳輸模式(UAC Type I(格式:PCM)),整合的音訊格式資訊可依據杜比音訊格式而定義之、具有資料叢發封裝的狀態與傳輸模式可以為IEC61937_AC-3_DataBurst。For example, the audio format information of Dolby Digital 5.1 channels is AC-3, the second transmission mode (UAC Type III) is not supported, the transmission mode is set to the first transmission mode (UAC Type I (format: PCM)), the integrated audio format information can be defined according to the Dolby audio format, the state of data burst encapsulation and the transmission mode can be IEC61937_AC-3_DataBurst.

舉例而言,杜比數位5.1聲道的音訊格式資訊為AC-3,支援第二傳輸模式(UAC Type III),傳輸模式設定為第二傳輸模式(Type III (格式:IEC61937_AC-3)),整合的音訊格式資訊可依據杜比音訊格式而定義之、具有資料叢發封裝的狀態與傳輸模式可以為IEC61937_AC-3_DataBurst。For example, the audio format information of Dolby Digital 5.1 channels is AC-3, supports the second transmission mode (UAC Type III), the transmission mode is set to the second transmission mode (Type III (Format: IEC61937_AC-3)), the integrated audio format information can be defined according to the Dolby audio format, has a data burst encapsulation state, and the transmission mode can be IEC61937_AC-3_DataBurst.

第4圖的步驟S411~S423與第3圖的步驟S308~S320實質上相同,故不再贅述之。Steps S411 to S423 of FIG. 4 are substantially the same as steps S308 to S320 of FIG. 3 , and thus will not be described in detail.

綜合以上,於音訊轉換方法400,非壓縮音訊預設使用第一傳輸模式(UAC Type I),壓縮音訊預設使用第二傳輸模式(UAC Type III),藉由不同模式傳輸不同音訊,提昇了傳輸穩定性。再者,由於具有資料叢發封裝的壓縮音訊的格式符合非壓縮音訊的格式,壓縮音訊可彈性地依據主機190是否支援第二傳輸模式,決定使用第一傳輸模式(UAC Type I)或第二傳輸模式(UAC Type III) ,從而實現壓縮音訊透過USB介面的多元化傳輸方式。In summary, in the audio conversion method 400, the first transmission mode (UAC Type I) is used by default for uncompressed audio, and the second transmission mode (UAC Type III) is used by default for compressed audio. By transmitting different audios in different modes, the transmission stability is improved. Furthermore, since the format of the compressed audio with data burst encapsulation conforms to the format of the uncompressed audio, the compressed audio can flexibly decide to use the first transmission mode (UAC Type I) or the second transmission mode (UAC Type III) according to whether the host 190 supports the second transmission mode, thereby realizing a diversified transmission method of compressed audio through the USB interface.

實務上,當擷取的影音內容較重視即時性時,音訊轉換裝置100可以藉由分流音訊,並將音訊直通Pass-through 以輸出多聲道高音質的內容至放大器(Amplifier)或監視器(Monitor)/電視機(TV),其中放大器可電性連接於音訊轉換裝置100與監視器/電視機之間,或者,監視器/電視機可電性連接於音訊轉換裝置100與放大器之間。In practice, when the captured audio and video content places greater emphasis on real-time performance, the audio conversion device 100 can output multi-channel high-quality sound content to an amplifier or a monitor/TV by shunting the audio and passing the audio directly through, wherein the amplifier can be electrically connected between the audio conversion device 100 and the monitor/TV, or the monitor/TV can be electrically connected between the audio conversion device 100 and the amplifier.

實務上,當擷取的影音內容較重視主機190上的操作時(如:直播上與觀看者的互動),可藉由主機190的HDMI輸出多聲道高音質的內容,輸出至放大器(Amplifier)或監視器 (Monitor)/電視機(TV) ,其中放大器可電性連接於主機190與監視器/電視機之間,或者,監視器/電視機可電性連接於主機190與放大器之間。In practice, when the captured audio and video content places more emphasis on the operations on the host 190 (such as interaction with viewers during a live broadcast), the multi-channel high-quality sound content can be output through the HDMI output of the host 190 to an amplifier or a monitor/television, wherein the amplifier can be electrically connected between the host 190 and the monitor/television, or the monitor/television can be electrically connected between the host 190 and the amplifier.

綜上所述,本發明之技術方案與現有技術相比具有明顯的優點和有益效果。藉由本發明的音訊轉換方法200、300、400及音訊轉換裝置100,以具有資料叢發封裝的壓縮音訊進行傳輸,從而在影音擷取上獲得多聲道的壓縮音訊,可讓使用者在遊戲或影音體驗上能夠更真實的紀錄下來。In summary, the technical solution of the present invention has obvious advantages and beneficial effects compared with the prior art. By using the audio conversion methods 200, 300, 400 and the audio conversion device 100 of the present invention, compressed audio with data burst packaging is transmitted, thereby obtaining multi-channel compressed audio in audio and video capture, allowing users to record the game or audio and video experience more realistically.

雖然本發明已以實施方式揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention. Anyone skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined in the attached patent application.

為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附符號之說明如下: 100:音訊轉換裝置 110:接收模組 120:處理單元 130:控制單元 140:傳送模組 150:後端介面 190:主機 191:接收介面 192:軟體執行單元 193:儲存單元 200、300、400:音訊轉換方法 S201~S206、S301~S320、S401~S423:步驟 In order to make the above and other purposes, features, advantages and embodiments of the present invention more clearly understandable, the attached symbols are explained as follows: 100: audio conversion device 110: receiving module 120: processing unit 130: control unit 140: transmission module 150: back-end interface 190: host 191: receiving interface 192: software execution unit 193: storage unit 200, 300, 400: audio conversion method S201~S206, S301~S320, S401~S423: steps

為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之說明如下: 第1圖是依照本發明一實施例之一種音訊轉換裝置的方塊圖; 第2圖是依照本發明一實施例之一種音訊轉換方法的流程圖; 第3圖是依照本發明另一實施例之一種音訊轉換方法的流程圖;以及 第4圖是依照本發明又一實施例之一種音訊轉換方法的流程圖。 In order to make the above and other purposes, features, advantages and embodiments of the present invention more clearly understandable, the attached drawings are described as follows: Figure 1 is a block diagram of an audio conversion device according to an embodiment of the present invention; Figure 2 is a flow chart of an audio conversion method according to an embodiment of the present invention; Figure 3 is a flow chart of an audio conversion method according to another embodiment of the present invention; and Figure 4 is a flow chart of an audio conversion method according to another embodiment of the present invention.

100:音訊轉換裝置 100: Audio conversion device

190:主機 190:Host

200:音訊轉換方法 200: Audio conversion method

S201~S206:步驟 S201~S206: Steps

Claims (16)

一種音訊轉換方法,包含: 透過一音訊轉換裝置接收一音訊,其中該音訊為一壓縮音訊; 依據該壓縮音訊的一封裝狀態,決定是否對該壓縮音訊進行一資料叢發封裝流程; 在決定是否對該壓縮音訊進行該資料叢發封裝流程以後,輸出一具有資料叢發封裝的壓縮音訊;以及 透過一主機接收該具有資料叢發封裝的壓縮音訊,對該具有資料叢發封裝的壓縮音訊進行一解資料叢發封裝流程,以取得該壓縮音訊。 An audio conversion method includes: receiving an audio through an audio conversion device, wherein the audio is a compressed audio; determining whether to perform a data burst encapsulation process on the compressed audio according to an encapsulation state of the compressed audio; after determining whether to perform the data burst encapsulation process on the compressed audio, outputting a compressed audio with data burst encapsulation; and receiving the compressed audio with data burst encapsulation through a host, performing a data burst decapsulation process on the compressed audio with data burst encapsulation to obtain the compressed audio. 如請求項1所述之音訊轉換方法,其中依據該壓縮音訊的該封裝狀態,決定是否對該壓縮音訊進行該資料叢發封裝流程,包含: 當該壓縮音訊的該封裝狀態為一未具有資料叢發封裝狀態時,將該壓縮音訊進行資料叢發封裝以產生該具有資料叢發封裝的壓縮音訊。 The audio conversion method as described in claim 1, wherein the process of determining whether to perform the data burst encapsulation process on the compressed audio is based on the encapsulation state of the compressed audio, including: When the encapsulation state of the compressed audio is a state without data burst encapsulation, the compressed audio is subjected to data burst encapsulation to generate the compressed audio with data burst encapsulation. 如請求項1所述之音訊轉換方法,其中在決定是否對該壓縮音訊進行該資料叢發封裝流程以後,輸出該具有資料叢發封裝的壓縮音訊,包含: 當該壓縮音訊的該封裝狀態為一具有資料叢發封裝狀態,將該壓縮音訊略過該資料叢發封裝流程。 The audio conversion method as described in claim 1, wherein after determining whether to perform the data burst encapsulation process on the compressed audio, the compressed audio with data burst encapsulation is output, comprising: When the encapsulation state of the compressed audio is a state with data burst encapsulation, the compressed audio skips the data burst encapsulation process. 如請求項1所述之音訊轉換方法,其中該主機取得該壓縮音訊的一音訊格式資訊,透過該主機接收該具有資料叢發封裝的壓縮音訊,對該具有資料叢發封裝的壓縮音訊進行該解資料叢發封裝流程,以取得該壓縮音訊,包含: 依據該音訊格式資訊,對該具有資料叢發封裝的壓縮音訊進行該解資料叢發封裝流程。 The audio conversion method as described in claim 1, wherein the host obtains an audio format information of the compressed audio, receives the compressed audio with data burst encapsulation through the host, and performs the de-data-burst encapsulation process on the compressed audio with data burst encapsulation to obtain the compressed audio, comprising: Performing the de-data-burst encapsulation process on the compressed audio with data burst encapsulation according to the audio format information. 如請求項1所述之音訊轉換方法,更包含: 透過該音訊轉換裝置對於該壓縮音訊使用一第一傳輸模式或一第二傳輸模式,使該音訊轉換裝置透過該第一傳輸模式或該第二傳輸模式將該具有資料叢發封裝的壓縮音訊傳送至該主機。 The audio conversion method as described in claim 1 further includes: Using a first transmission mode or a second transmission mode for the compressed audio through the audio conversion device, so that the audio conversion device transmits the compressed audio with data burst encapsulation to the host through the first transmission mode or the second transmission mode. 如請求項5所述之音訊轉換方法,其中該主機與該音訊轉換裝置之間透過通用序列匯流排(USB)連接,該第一傳輸模式為USB音頻類別音頻資料格式第一類(UAC Type I),該第二傳輸模式為USB音頻類別音頻資料格式第三類(UAC Type III)。An audio conversion method as described in claim 5, wherein the host and the audio conversion device are connected via a universal serial bus (USB), the first transmission mode is USB audio class audio data format type I (UAC Type I), and the second transmission mode is USB audio class audio data format type III (UAC Type III). 如請求項1所述之音訊轉換方法,更包含: 透過該音訊轉換裝置對於一非壓縮音訊預設使用一第一傳輸模式;以及 透過該音訊轉換裝置對於該壓縮音訊預設使用一第二傳輸模式。 The audio conversion method as described in claim 1 further includes: Using the audio conversion device to use a first transmission mode by default for an uncompressed audio; and Using the audio conversion device to use a second transmission mode by default for the compressed audio. 如請求項7所述之音訊轉換方法,更包含: 判斷該主機是否支援該第二傳輸模式;以及 當該主機不支援該第二傳輸模式時,透過該音訊轉換裝置改設定該壓縮音訊預設使用該第一傳輸模式,使該音訊轉換裝置透過該第一傳輸模式將該具有資料叢發封裝的壓縮音訊傳送至該主機。 The audio conversion method as described in claim 7 further includes: Determining whether the host supports the second transmission mode; and When the host does not support the second transmission mode, resetting the compressed audio to use the first transmission mode by the audio conversion device, so that the audio conversion device transmits the compressed audio with data burst encapsulation to the host through the first transmission mode. 如請求項4所述之音訊轉換方法, 其中該主機與該音訊轉換裝置之間透過通用序列匯流排(USB)連接,該主機透過一自定義溝通方式得到該音訊格式資訊。 The audio conversion method as described in claim 4, wherein the host and the audio conversion device are connected via a universal serial bus (USB), and the host obtains the audio format information via a custom communication method. 如請求項7所述之音訊轉換方法,其中該主機與該音訊轉換裝置之間透過USB連接,該第一傳輸模式為UAC Type I,該第二傳輸模式為UAC Type III。An audio conversion method as described in claim 7, wherein the host and the audio conversion device are connected via a USB, the first transmission mode is UAC Type I, and the second transmission mode is UAC Type III. 一種音訊轉換裝置,與一主機搭配使用,該音訊轉換裝置包含: 一接收模組,接收一音訊,其中該音訊為一壓縮音訊; 一處理單元,電性連接該接收模組,該處理單元依據該壓縮音訊的一封裝狀態,決定是否對該壓縮音訊進行一資料叢發封裝流程; 一控制單元,電性連接該處理單元;以及 一傳送模組,電性連接該處理單元與該控制單元,該控制單元控制該傳送模組輸出一具有資料叢發封裝的壓縮音訊,使得一主機接收該具有資料叢發封裝的壓縮音訊,對該具有資料叢發封裝的壓縮音訊進行一解資料叢發封裝流程,以取得該壓縮音訊。 An audio conversion device is used in conjunction with a host, the audio conversion device comprising: a receiving module, receiving an audio signal, wherein the audio signal is a compressed audio signal; a processing unit, electrically connected to the receiving module, the processing unit determines whether to perform a data burst packaging process on the compressed audio signal according to a packaging state of the compressed audio signal; a control unit, electrically connected to the processing unit; and A transmission module is electrically connected to the processing unit and the control unit. The control unit controls the transmission module to output a compressed audio signal with a data burst package, so that a host receives the compressed audio signal with a data burst package and performs a data burst decapsulation process on the compressed audio signal with a data burst package to obtain the compressed audio signal. 如請求項11所述之音訊轉換裝置,其中當該壓縮音訊的該封裝狀態為一未具有資料叢發封裝狀態時,該處理單元將該壓縮音訊進行資料叢發封裝以產生該具有資料叢發封裝的壓縮音訊。The audio conversion device as described in claim 11, wherein when the encapsulation state of the compressed audio is a state without data burst encapsulation, the processing unit performs data burst encapsulation on the compressed audio to generate the compressed audio with data burst encapsulation. 如請求項11所述之音訊轉換裝置,其中當該壓縮音訊的該封裝狀態為一具有資料叢發封裝狀態,該處理單元將該壓縮音訊略過該資料叢發封裝流程。An audio conversion device as described in claim 11, wherein when the encapsulation state of the compressed audio is a data burst encapsulation state, the processing unit skips the data burst encapsulation process for the compressed audio. 如請求項11所述之音訊轉換裝置,其中該主機取得該壓縮音訊的一音訊格式資訊,該主機依據該音訊格式資訊,對該具有資料叢發封裝的壓縮音訊進行該解資料叢發封裝流程。The audio conversion device as described in claim 11, wherein the host obtains audio format information of the compressed audio, and the host performs the de-data-bundle encapsulation process on the compressed audio with data-bundle encapsulation according to the audio format information. 如請求項11所述之音訊轉換裝置,其中該接收模組或該處理單元偵測該壓縮音訊的一音訊格式資訊,當該控制單元判定該音訊格式資訊與前次偵測到的音訊格式資訊不同時,該控制單元控制該傳送模組做重新連接。The audio conversion device as described in claim 11, wherein the receiving module or the processing unit detects audio format information of the compressed audio, and when the control unit determines that the audio format information is different from the audio format information detected last time, the control unit controls the transmission module to reconnect. 如請求項11所述之音訊轉換裝置,其中該主機與該音訊轉換裝置之間透過USB連接,該主機透過一自定義溝通方式得到一音訊格式資訊。An audio conversion device as described in claim 11, wherein the host and the audio conversion device are connected via a USB, and the host obtains audio format information via a customized communication method.
TW112118981A 2023-05-22 2023-05-22 Audio conversion method and apparatus TW202447613A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW112118981A TW202447613A (en) 2023-05-22 2023-05-22 Audio conversion method and apparatus
US18/670,707 US20240394009A1 (en) 2023-05-22 2024-05-21 Audio conversion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112118981A TW202447613A (en) 2023-05-22 2023-05-22 Audio conversion method and apparatus

Publications (1)

Publication Number Publication Date
TW202447613A true TW202447613A (en) 2024-12-01

Family

ID=94735508

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112118981A TW202447613A (en) 2023-05-22 2023-05-22 Audio conversion method and apparatus

Country Status (1)

Country Link
TW (1) TW202447613A (en)

Similar Documents

Publication Publication Date Title
US8451388B2 (en) Audio processing apparatus and audio processing method for processing according to detected mode
EP2461607B1 (en) Audio device
TW201926999A (en) Audio and video playback system and method for playing audio data applied thereto
WO2014137616A1 (en) Mechanism for facilitating synchronization of audio and video between multiple media devices
US11025406B2 (en) Audio return channel clock switching
CN103081517B (en) Message handler, audio process, audio frequency processing system, program and video game program
US20210098011A1 (en) Audio Return Channel Data Loopback
JP2012050046A (en) Information processor, acoustic processor, acoustic processing system and program
JP6809470B2 (en) Transmitter, transmitter, receiver and receiver
US20080240682A1 (en) Sound playback apparatus
KR20110037680A (en) Multi-channel audio output device and method of portable device
JP2008301454A (en) Audio data repeating system
JP2001169399A (en) Transmission method and transmission device
US20030222843A1 (en) Systems and methods for encoding control signals initiated from remote devices
TW202447613A (en) Audio conversion method and apparatus
CN213693982U (en) Audio-video system
US20240394009A1 (en) Audio conversion method and device
US20140180459A1 (en) HDMI Signal Processing System and Method
WO2018171579A1 (en) Method for merging external audio signal and hdmi signal and hdmi connector
WO2011115130A1 (en) Display device, television receiver, audio signal supply method, audio signal supply system, program, and recording medium
CN114630065B (en) Audio conversion device and audio processing method for multimedia relay device
WO2019225449A1 (en) Transmission device, transmission method, reception device, and reception method
CN111601157B (en) Audio output method and display device
CN110312093A (en) Electronic device and related signal processing method
JPH11187034A (en) Signal processor