CN108628573B - Method and device for supporting input of multiple types of audio signals - Google Patents

Method and device for supporting input of multiple types of audio signals Download PDF

Info

Publication number
CN108628573B
CN108628573B CN201810348678.7A CN201810348678A CN108628573B CN 108628573 B CN108628573 B CN 108628573B CN 201810348678 A CN201810348678 A CN 201810348678A CN 108628573 B CN108628573 B CN 108628573B
Authority
CN
China
Prior art keywords
audio
audio data
memory
configuration information
data line
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201810348678.7A
Other languages
Chinese (zh)
Other versions
CN108628573A (en
Inventor
郑应航
陈长海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rockchip Electronics Co Ltd
Original Assignee
Rockchip Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Rockchip Electronics Co Ltd filed Critical Rockchip Electronics Co Ltd
Priority to CN201810348678.7A priority Critical patent/CN108628573B/en
Publication of CN108628573A publication Critical patent/CN108628573A/en
Application granted granted Critical
Publication of CN108628573B publication Critical patent/CN108628573B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs

Abstract

The invention provides a method and a device for supporting multi-type audio signal input, wherein the device comprises a processor, a computer program, a memory and at least one audio data interface, and each audio data interface comprises a plurality of audio data lines; the computer program when executed by a processor implementing the steps of: generating audio configuration information according to the connection condition of all audio data lines and audio equipment, and storing the audio configuration information into a memory; receiving an audio acquisition request of an application program, acquiring audio configuration information in a memory, and determining identification information of an audio data line corresponding to the current audio acquisition request according to the audio configuration information; and transmitting the audio information sent by the audio equipment correspondingly connected with the audio data line of the determined identification information to the application program. The invention can realize that a single audio data interface supports the signal input of a plurality of audio devices, thereby effectively reducing the hardware cost.

Description

Method and device for supporting input of multiple types of audio signals
Technical Field
The present invention relates to the field of computers, and in particular, to a method and an apparatus for supporting input of multiple types of audio signals.
Background
With the development of technology and social progress, audio devices have been widely used. Currently, different sets of I2S/PDM input interfaces are required if audio signals from different audio sound generating devices are to be input to the CPU master. As shown in fig. 1, the existing relationship between the audio sound generating device and the audio playing interface is that one audio sound generating device is correspondingly connected with one I2S/PDM input interface, and if audio signals of multiple audio sound generating devices need to be input, the number of I2S/PDM input interfaces is required to be the corresponding number, which results in the increase of hardware cost. In addition, if the number of the audio playing interfaces is only one, even if the audio playing interfaces comprise a plurality of audio data lines, according to the existing connection mode, a single I2S/PDM input interface cannot support the input of audio signals from different audio sound generating devices, which affects the user experience.
Disclosure of Invention
Therefore, a technical scheme supporting input of multiple types of audio signals needs to be provided for solving the problems that the existing audio playing interface is connected with the audio sound generating devices in a one-to-one correspondence manner, so that the single-port audio playing interface cannot support the multiple audio sound generating devices, hardware cost is increased, and user experience is poor.
To achieve the above object, the inventors provide an apparatus supporting multiple types of audio signal input, the apparatus comprising a processor, a computer program, a memory, at least one audio data interface, each audio data interface comprising a plurality of audio data lines; the computer program when executed by a processor implementing the steps of:
generating audio configuration information according to the connection condition of all audio data lines and audio equipment, and storing the audio configuration information into a memory; one audio device is correspondingly connected with one audio data line; the audio configuration information comprises the corresponding relation between the identification information of the audio data line and the type of the audio equipment;
receiving an audio acquisition request of an application program, wherein the audio acquisition request comprises an audio equipment type required by the application program;
acquiring audio configuration information in a memory, and determining identification information of an audio data line corresponding to a current audio acquisition request according to the audio configuration information;
and transmitting the audio information sent by the audio equipment correspondingly connected with the audio data line of the determined identification information to the application program.
Furthermore, the memory is a read-only memory, and the device also comprises a programming unit; the computer program when executed by a processor implements the steps of:
and controlling a programming unit to program the audio configuration information into a read-only memory.
Further, each audio data line corresponds to two channels, including a first channel and a second channel; the computer program when executed by a processor implementing the steps of:
and transmitting the audio information sent by the audio equipment correspondingly connected with the audio data line of the determined identification information to the application program through either or both of the first channel and the second channel.
Further, the audio device comprises any one or more of a microphone, a local loop back interface, and a wire connection device.
The inventor also provides a method for supporting multi-type audio signal input, which is applied to a device for supporting multi-type audio signal input, wherein the device comprises a processor, a memory and at least one audio data interface, and each audio data interface corresponds to at least one audio data line; the method comprises the following steps:
the processor generates audio configuration information according to the connection condition of all the audio data lines and the audio equipment, and stores the audio configuration information into the memory; one audio device is correspondingly connected with one audio data line; the audio configuration information comprises the corresponding relation between the identification information of the audio data line and the type of the audio equipment;
the processor receives an audio acquisition request of an application program, acquires audio configuration information in the memory, and determines identification information of an audio data line corresponding to the current audio acquisition request according to the audio configuration information; the audio acquisition request comprises the type of audio equipment required by the application program;
and the processor transmits the audio information sent by the audio equipment correspondingly connected with the audio data line of the determined identification information to the application program.
Furthermore, the memory is a read-only memory, and the device also comprises a programming unit; the method further comprises the steps of:
and the processor controls the programming unit to program the audio configuration information into the read-only memory.
Further, each audio data line corresponds to two channels, including a first channel and a second channel; the method further comprises the steps of:
the processor transmits audio information emitted by an audio device connected corresponding to the determined audio data line of the identification information to the application program through either or both of the first channel and the second channel.
Further, the audio device comprises any one or more of a microphone, a local loop back interface, and a wire connection device.
The invention provides a method and a device for supporting multi-type audio signal input, wherein the device comprises a processor, a computer program, a memory and at least one audio data interface, and each audio data interface comprises a plurality of audio data lines; the computer program when executed by a processor implementing the steps of: generating audio configuration information according to the connection condition of all audio data lines and audio equipment, and storing the audio configuration information into a memory; receiving an audio acquisition request of an application program, acquiring audio configuration information in a memory, and determining identification information of an audio data line corresponding to the current audio acquisition request according to the audio configuration information; and transmitting the audio information sent by the audio equipment correspondingly connected with the audio data line of the determined identification information to the application program. The invention can realize that a single audio data interface supports the signal input of a plurality of audio devices, thereby effectively reducing the hardware cost.
Drawings
Fig. 1 is a schematic diagram illustrating a connection relationship between an audio data interface and an audio device according to the prior art;
fig. 2 is a schematic diagram illustrating a connection relationship between an audio data interface and an audio device according to an embodiment of the present invention;
fig. 3 is a flowchart of a method of supporting multi-type audio signal input according to an embodiment of the present invention.
Detailed Description
To explain technical contents, structural features, and objects and effects of the technical solutions in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
The invention discloses a device for supporting multi-type audio signal input, which is characterized by comprising a processor, a computer program, a memory and at least one audio data interface, wherein each audio data interface comprises a plurality of audio data lines.
IN this embodiment, the audio data interfaces are SDI interfaces (digital component serial interfaces), each SDI interface generally includes 4 audio data LINEs, such as SDI0, SDI1, SDI2 IN fig. 2, which are respectively connected to the microphone, the LINE IN, and the local loop back interface (LoopBack), and an SDI3 (not shown IN fig. 2), which may not be connected to the audio device or may be connected to other audio devices besides the three. The line connection device refers to an electronic device, such as a computer, which establishes connection with the audio data interface through a cable. Of course, the SDI interface further includes a clock line, and the clock line may be shared among the audio data lines.
The processor is an electronic component with a data processing function, and can be any one of a CPU (central processing unit), a DSP (digital signal processor) or an MCU (micro-controller unit).
The computer program when executed by a processor implementing the steps of:
firstly, generating audio configuration information according to the connection condition of all audio data lines and audio equipment, and storing the audio configuration information into a memory; one audio device is correspondingly connected with one audio data line; the audio configuration information includes a correspondence between identification information of the audio data line and the type of the audio device. Taking fig. 2 as an example, the following information is described in the audio configuration information: "the audio data line SDI0 is correspondingly connected to the microphone, i.e. used for transmitting the audio signal inputted by the microphone; the audio data LINE SDI1 is correspondingly connected with the LINE IN, namely used for transmitting audio signals input by the LINE connection equipment; the audio data line SDI2 is correspondingly connected to LoopBack, i.e., for transmitting the extracted audio signal ".
And then receiving an audio acquisition request of the application program, wherein the audio acquisition request comprises the type of the audio equipment required by the application program, acquiring audio configuration information in the memory, and determining the identification information of the audio data line corresponding to the current audio acquisition request according to the audio configuration information. The identification information is a physical quantity that characterizes the audio data line to be distinguished from other audio data lines, and may be a number, a character string, or the like, for example, the aforementioned "0", "1", and "2" in "SDI 0", "SDI 1", and "SDI 2" are identification information. The application refers to a running application, and may be, for example, a certain running game or audio playing software, which needs to acquire an audio signal from an audio device (i.e., an audio sound generating device) during running. For an application, which may learn whether it needs audio from a microphone or from a pickup, when it needs audio signal input, a corresponding audio acquisition request will be sent to the processor.
And then transmitting the audio information sent by the audio equipment correspondingly connected with the audio data line of the determined identification information to the application program. For example, the application a needs an audio signal input by a microphone, the application B needs an extraction signal (i.e., an audio signal input by a local LoopBack interface), and after the processor receives the requests from the application a and the application B, the audio signals of the microphone and the local LoopBack interface are simultaneously sampled, and the audio signal obtained by sampling the audio data line SDI0 is distributed and transmitted to the application a (it is assumed that the microphone recorded in the audio configuration information is connected to the audio data line SDI 0), and the audio signal obtained by sampling the audio data line SDI1 is distributed and transmitted to the application B (it is assumed that the LoopBack recorded in the audio configuration information is connected to the audio data line SDI 1). Therefore, the single audio data interface (comprising a plurality of audio data lines) is realized to support the audio signal sampling input of a plurality of audio devices, and the hardware cost is effectively saved.
The memory is an electronic component with a data storage function for storing audio configuration information, and is preferably a read-only memory. The device also comprises a programming unit; the computer program when executed by a processor implements the steps of: and controlling a programming unit to program the audio configuration information into a read-only memory. The burning unit is also called a burner, which is a tool for writing data on a programmable integrated circuit and is mainly used for programming (or writing) chips such as a singlechip (including an embedded type)/a memory (including a BIOS) and the like. The audio configuration information is programmed into the read-only memory, so that the audio configuration information can be stored for a long time and cannot be erased and modified after programming, and the safety and the effectiveness of the storage of the audio configuration information are effectively improved.
In some embodiments, each audio data line corresponds to two channels, including a first channel and a second channel; the computer program when executed by a processor implementing the steps of: and transmitting the audio information sent by the audio equipment correspondingly connected with the audio data line of the determined identification information to the application program through either or both of the first channel and the second channel. When the audio information is transmitted to the application program through one sound channel, the audio information is subjected to sound mixing processing and then output; when the audio information is transmitted through the two channels, the audio information can be mixed, enhanced and mixed again for output, so that the left and right channel information of the audio information can be better reserved.
As shown in fig. 3, a method for supporting multi-type audio signal input is applied to a device for supporting multi-type audio signal input, the device comprising a processor, a memory and at least one audio data interface, each audio data interface corresponding to at least one audio data line; the method comprises the following steps:
firstly, the processor generates audio configuration information according to the connection condition of all audio data lines and audio equipment and stores the audio configuration information into a memory in the step S301; one audio device is correspondingly connected with one audio data line; the audio configuration information comprises the corresponding relation between the identification information of the audio data line and the type of the audio equipment;
then step S302 is entered, the processor receives the audio acquisition request of the application program, acquires the audio configuration information in the memory, and determines the identification information of the audio data line corresponding to the current audio acquisition request according to the audio configuration information; the audio acquisition request comprises the type of audio equipment required by the application program;
then, the process proceeds to step S303, and the processor transmits the audio information sent by the audio device connected corresponding to the determined audio data line of the identification information to the application program.
In some embodiments, the memory is a read-only memory, and the apparatus further comprises a programming unit; the method further comprises the step that the processor controls the programming unit to program the audio configuration information into the read-only memory.
In some embodiments, each audio data line corresponds to two channels, including a first channel and a second channel; the method further comprises the steps of:
the processor transmits audio information emitted by an audio device connected corresponding to the determined audio data line of the identification information to the application program through either or both of the first channel and the second channel.
The invention provides a method and a device for supporting multi-type audio signal input, wherein the device comprises a processor, a computer program, a memory and at least one audio data interface, and each audio data interface comprises a plurality of audio data lines; the computer program when executed by a processor implementing the steps of: generating audio configuration information according to the connection condition of all audio data lines and audio equipment, and storing the audio configuration information into a memory; receiving an audio acquisition request of an application program, acquiring audio configuration information in a memory, and determining identification information of an audio data line corresponding to the current audio acquisition request according to the audio configuration information; and transmitting the audio information sent by the audio equipment correspondingly connected with the audio data line of the determined identification information to the application program. The invention can realize that a single audio data interface supports the signal input of a plurality of audio devices, thereby effectively reducing the hardware cost.
It should be noted that, although the above embodiments have been described herein, the invention is not limited thereto. Therefore, based on the innovative concepts of the present invention, the technical solutions of the present invention can be directly or indirectly applied to other related technical fields by making changes and modifications to the embodiments described herein, or by using equivalent structures or equivalent processes performed in the content of the present specification and the attached drawings, which are included in the scope of the present invention.

Claims (8)

1. An apparatus for supporting multiple types of audio signal input, the apparatus comprising a processor, a computer program, a memory, at least one audio data interface, each audio data interface comprising a plurality of audio data lines; the computer program when executed by a processor implementing the steps of:
generating audio configuration information according to the connection condition of all audio data lines and audio equipment, and storing the audio configuration information into a memory; one audio device is correspondingly connected with one audio data line; the audio configuration information comprises the corresponding relation between the identification information of the audio data line and the type of the audio equipment;
receiving an audio acquisition request of an application program, wherein the audio acquisition request comprises an audio equipment type required by the application program;
acquiring audio configuration information in a memory, and determining identification information of an audio data line corresponding to a current audio acquisition request according to the audio configuration information;
and transmitting the audio information sent by the audio equipment correspondingly connected with the audio data line of the determined identification information to the application program.
2. The apparatus for supporting multiple types of audio signal input according to claim 1, wherein the memory is a read only memory, the apparatus further comprising a programming unit; the computer program when executed by a processor implements the steps of:
and controlling a programming unit to program the audio configuration information into a read-only memory.
3. The apparatus for supporting multiple types of audio signal input according to claim 1, wherein each audio data line corresponds to two channels, including a first channel and a second channel; the computer program when executed by a processor implementing the steps of:
and transmitting the audio information sent by the audio equipment correspondingly connected with the audio data line of the determined identification information to the application program through either or both of the first channel and the second channel.
4. The apparatus of claim 1, wherein the audio device comprises any one or more of a microphone, a local loop back interface, a wire connection device.
5. A method for supporting multi-type audio signal input is applied to a device for supporting multi-type audio signal input, and the device comprises a processor, a memory and at least one audio data interface, wherein each audio data interface corresponds to at least one audio data line; the method comprises the following steps:
the processor generates audio configuration information according to the connection condition of all the audio data lines and the audio equipment, and stores the audio configuration information into the memory; one audio device is correspondingly connected with one audio data line; the audio configuration information comprises the corresponding relation between the identification information of the audio data line and the type of the audio equipment;
the processor receives an audio acquisition request of an application program, acquires audio configuration information in the memory, and determines identification information of an audio data line corresponding to the current audio acquisition request according to the audio configuration information; the audio acquisition request comprises the type of audio equipment required by the application program;
and the processor transmits the audio information sent by the audio equipment correspondingly connected with the audio data line of the determined identification information to the application program.
6. The method of supporting multiple types of audio signal input according to claim 5, wherein the memory is a read-only memory, the apparatus further comprising a programming unit; the method further comprises the steps of:
and the processor controls the programming unit to program the audio configuration information into the read-only memory.
7. The method of claim 5, wherein each audio data line corresponds to two channels, including a first channel and a second channel; the method further comprises the steps of:
the processor transmits audio information emitted by an audio device connected corresponding to the determined audio data line of the identification information to the application program through either or both of the first channel and the second channel.
8. The method of supporting multiple types of audio signal inputs according to claim 5, wherein the audio device comprises any one or more of a microphone, a local loop back interface, a wire connection device.
CN201810348678.7A 2018-04-18 2018-04-18 Method and device for supporting input of multiple types of audio signals Active CN108628573B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810348678.7A CN108628573B (en) 2018-04-18 2018-04-18 Method and device for supporting input of multiple types of audio signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810348678.7A CN108628573B (en) 2018-04-18 2018-04-18 Method and device for supporting input of multiple types of audio signals

Publications (2)

Publication Number Publication Date
CN108628573A CN108628573A (en) 2018-10-09
CN108628573B true CN108628573B (en) 2021-09-03

Family

ID=63705533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810348678.7A Active CN108628573B (en) 2018-04-18 2018-04-18 Method and device for supporting input of multiple types of audio signals

Country Status (1)

Country Link
CN (1) CN108628573B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600677A (en) * 2018-12-11 2019-04-09 网易(杭州)网络有限公司 Data transmission method and device, storage medium, electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215287A (en) * 2010-04-12 2011-10-12 中兴通讯股份有限公司 Method and device for switching audio channels of communication module
CN103763508A (en) * 2014-01-13 2014-04-30 深圳市迪威视讯股份有限公司 Voice frequency access method for video conference terminal and video conference terminal
CN104469500A (en) * 2013-09-18 2015-03-25 宏达国际电子股份有限公司 Method for outputting multiple multimedia tracks along multiple processing paths from a portable electronic device
CN205812371U (en) * 2016-06-14 2016-12-14 青岛歌尔声学科技有限公司 A kind of audio frequency control module and audio output apparatus
CN205847530U (en) * 2016-07-06 2016-12-28 微鲸科技有限公司 Audio-frequence player device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR960700616A (en) * 1993-11-24 1996-01-20 타게 뢰흐그렌; 얼링 블로메 AUTHENTICATION FOR ANALOG COMMUNICATION SYSTEMS
CN1155880C (en) * 2000-12-18 2004-06-30 联想(北京)有限公司 Multi-audio equipment connection terminal and combined connector
US20080108302A1 (en) * 2006-11-07 2008-05-08 Mikko Linnamaki Multi-radio mobile application
CN201114776Y (en) * 2007-09-13 2008-09-10 王祥贵 An audio signal converter and audio signal transmission system using this converter
US10063967B2 (en) * 2016-03-22 2018-08-28 Panasonic Intellectual Property Management Co., Ltd. Sound collecting device and sound collecting method
CN107623776A (en) * 2017-08-24 2018-01-23 维沃移动通信有限公司 A kind of method for controlling volume, system and mobile terminal
CN107911871B (en) * 2017-12-12 2020-08-14 腾讯科技(深圳)有限公司 Bluetooth connection control method and device, control equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215287A (en) * 2010-04-12 2011-10-12 中兴通讯股份有限公司 Method and device for switching audio channels of communication module
CN104469500A (en) * 2013-09-18 2015-03-25 宏达国际电子股份有限公司 Method for outputting multiple multimedia tracks along multiple processing paths from a portable electronic device
CN103763508A (en) * 2014-01-13 2014-04-30 深圳市迪威视讯股份有限公司 Voice frequency access method for video conference terminal and video conference terminal
CN205812371U (en) * 2016-06-14 2016-12-14 青岛歌尔声学科技有限公司 A kind of audio frequency control module and audio output apparatus
CN205847530U (en) * 2016-07-06 2016-12-28 微鲸科技有限公司 Audio-frequence player device

Also Published As

Publication number Publication date
CN108628573A (en) 2018-10-09

Similar Documents

Publication Publication Date Title
CN107516510B (en) Automatic voice testing method and device for intelligent equipment
TW507159B (en) Computer, controlling method therefor, recording medium, and transmitting medium
CN107637088B (en) Audio playing system, external expansion equipment, audio playing method and device
CN107256707B (en) Voice recognition method, system and terminal equipment
CN104267924A (en) Mobile terminal and audio processing method thereof
US20190237070A1 (en) Voice interaction method, device, apparatus and server
CN108124172B (en) Cloud projection method, device and system
US11205431B2 (en) Method, apparatus and device for presenting state of voice interaction device, and storage medium
CN110830823B (en) Play progress correction method and device, electronic equipment and readable storage medium
CN104464743B (en) Method for playing background music in voice chat room and mobile terminal
CN108460120A (en) Data save method, device, terminal device and storage medium
US9471272B2 (en) Skip of a portion of audio
CN108289232B (en) Control method of playing device, terminal device and storage medium
CN108628573B (en) Method and device for supporting input of multiple types of audio signals
CN104778217A (en) Music splicing algorithm and device
CN111601154A (en) Video processing method and related equipment
US10171868B2 (en) Method for processing audio data, terminal and television
JP6852478B2 (en) Communication terminal, communication program and communication method
US10372655B1 (en) Memory-mapped state bus for integrated circuit
CN109753262B (en) Frame display processing method and device, terminal equipment and storage medium
KR100834543B1 (en) Method and apparatus for sharing a live presentation file over a network
CN104007969A (en) Booting sound playing method and device
CN106603952A (en) Monitoring video big data management method and system
JP4502686B2 (en) Communication method and processor
CN108282720B (en) Audio data stream transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 350003 building 18, No.89, software Avenue, Gulou District, Fuzhou City, Fujian Province

Applicant after: Ruixin Microelectronics Co., Ltd

Address before: 350003 building 18, No.89, software Avenue, Gulou District, Fuzhou City, Fujian Province

Applicant before: Fuzhou Rockchips Electronics Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant