CN112509608B - Method and device for recording sound along with channel of USB (Universal Serial bus) equipment and storage medium - Google Patents

Method and device for recording sound along with channel of USB (Universal Serial bus) equipment and storage medium Download PDF

Info

Publication number
CN112509608B
CN112509608B CN202011338817.1A CN202011338817A CN112509608B CN 112509608 B CN112509608 B CN 112509608B CN 202011338817 A CN202011338817 A CN 202011338817A CN 112509608 B CN112509608 B CN 112509608B
Authority
CN
China
Prior art keywords
recording
usb
channel
equipment
application app
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
CN202011338817.1A
Other languages
Chinese (zh)
Other versions
CN112509608A (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.)
Guangzhou Lango Electronic Science and Technology Co Ltd
Original Assignee
Guangzhou Lango Electronic Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Lango Electronic Science and Technology Co Ltd filed Critical Guangzhou Lango Electronic Science and Technology Co Ltd
Priority to CN202011338817.1A priority Critical patent/CN112509608B/en
Publication of CN112509608A publication Critical patent/CN112509608A/en
Priority to PCT/CN2021/132256 priority patent/WO2022111435A1/en
Application granted granted Critical
Publication of CN112509608B publication Critical patent/CN112509608B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for recording a USB device along with a channel, which comprises the steps of switching a USB interface to a second channel after switching a first channel of an all-in-one machine device to the second channel; starting a recording application APP, and when the recording application APP does not belong to the application in the second channel, acquiring a channel to which the recording application APP belongs, acquiring an associated USB interface and switching to the channel to which the recording application APP belongs; acquiring the associated USB recording equipment mounted on each associated USB interface, and obtaining the USB recording equipment to be used according to the combination of a preset rule; and running the recording APP, and calling the USB recording equipment to be used according to the information of the USB recording equipment to be used to realize recording. The invention can solve the problem that the recording operation under other channels can not be realized after the channels of the all-in-one machine equipment are switched in the prior art. The invention also discloses a device for recording the USB equipment along with the channel and a storage medium.

Description

Method and device for recording sound along with channel of USB (Universal Serial bus) equipment and storage medium
Technical Field
The invention relates to a recording function in an all-in-one machine, in particular to a method and a device for recording sound of a USB device along with a channel and a storage medium.
Background
The all-in-one device generally has a plurality of source channels, such as an Android channel, an HDMI (High Definition Multimedia Interface) channel, an OPS (open pluggable computer) channel, a Type-C channel, and the like. Only when a USB (Universal Serial Bus) interface is under a corresponding channel, the USB device mounted by the USB interface can be used under the channel. Since the number of USB interfaces of the motherboard of the all-in-one device is limited, after the channel is switched, the corresponding USB interface is switched along with the channel by a USB Switch (also called a USB Switch). For example, when the Android channel is switched to the OPS channel, the USB interface is switched to the OPS device through the USB Switch, so that the OPS device can identify the USB device mounted on the following USB interface, and meanwhile, the USB device under the Android channel is removed. Since the USB device in the Android channel is removed, the operation of using the USB device in the Android channel may be interrupted or no device is available, and the USB device cannot be used. Particularly, for the recording device with the USB interface, after the channel is switched, the USB recording device connected to the USB interface under the Android channel cannot be used.
Disclosure of Invention
In order to overcome the defects of the prior art, one of the purposes of the invention is to provide a method for recording with a channel by a USB device, which can solve the problems that in the prior art, after the channel of an all-in-one machine device is switched, the APP applied in other channels cannot realize recording and the like.
The invention also aims to provide a device for recording the USB equipment along with the channel, which can solve the problem that in the prior art, the APP applied to other channels cannot realize recording after the channel of the all-in-one machine equipment is switched.
The invention further aims to provide a storage medium which can solve the problem that in the prior art, after the channels of the all-in-one machine equipment are switched, the APP applied to other channels cannot realize recording and the like.
One of the purposes of the invention is realized by adopting the following technical scheme:
a method for recording with a channel by a USB device comprises the following steps:
a first switching step: after the first channel of the all-in-one machine equipment is switched to the second channel, the USB interface of the all-in-one machine equipment is switched to the second channel;
an application starting step: starting a recording application APP, and executing a second switching step when the recording application APP does not belong to the application in the second channel;
a second switching step: acquiring a channel to which the recording application APP belongs, acquiring an associated USB interface according to the recording application APP, and switching the associated USB interface to the channel to which the recording application APP belongs;
equipment selection: acquiring associated USB recording equipment mounted on each associated USB interface, matching the associated USB recording equipment according to a preset rule to obtain USB recording equipment to be used, and acquiring information of the USB recording equipment to be used from the system;
recording: and running the recording APP, and calling the USB recording equipment to be used according to the information of the USB recording equipment to be used to realize recording.
Further, still include: an equipment acquisition step: the method comprises the steps of obtaining information of USB recording equipment mounted on each USB interface of all-in-one equipment, obtaining corresponding Card ID, Card Name and connection state according to the information of each USB recording equipment, and storing each USB recording equipment in a custom equipment management list in a system according to priority.
Further, switching the USB interface of the all-in-one machine device to the second channel in the first switching step includes switching the USB interface to the second channel through a USB Switch;
switching the associated USB interface to the channel to which the recording application APP belongs in the second switching step specifically includes: and acquiring the associated USB Switch according to the associated USB interface, and switching the associated USB interface to the channel to which the recording application APP belongs through the associated USB Switch.
Further, the recording step further comprises: and (3) a recovery step: and after the recording is finished, switching the associated USB interface to the second channel by controlling the associated USB Switch, thereby recovering the USB recording equipment which can be identified by the system under the second channel.
Further, the first channel is an Android channel, and the second channel is any one of an OPS channel, a Type-C channel and an HDMI channel.
Further, the recording step further comprises: and resetting the data stream according to the USB recording equipment to be used to the Audio Record interface, and uploading the recording data to the application APP.
Further, the recording step further comprises: and calling an Audio Record interface to create a process, and acquiring recorded data from the corresponding sound card equipment according to the thread and returning the recorded data to the application APP.
Further, the device selecting step further comprises: and acquiring the equipment information input by the user to obtain the USB recording equipment to be used from the associated USB recording equipment.
The second purpose of the invention is realized by adopting the following technical scheme:
a device for recording sound with a channel of a USB device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the computer program is a program for recording the sound with the channel of the USB device, and the processor realizes the steps of the method for recording the sound with the channel of the USB device when executing the program for recording the sound with the channel of the USB device.
The third purpose of the invention is realized by adopting the following technical scheme:
a storage medium being a computer readable storage medium having stored thereon a computer program being a program for a USB device to record with a channel, the program for the USB device to record with a channel when executed by a processor implementing the steps of a method for a USB device to record with a channel as employed in one of the objects of the present invention.
Compared with the prior art, the invention has the beneficial effects that:
when the recording application APP which does not belong to the current channel is started, part of the USB interfaces under the current channel are switched to the channel to which the recording application APP belongs, so that the recording application APP calls the USB equipment mounted on the corresponding USB interface under the channel to which the recording application APP belongs, and the recording operation is realized, and therefore the problem that in the prior art, after the channel of the all-in-one machine equipment is switched, the operation of the application APPs of other channels is interrupted or is in an equipment-free state and cannot be operated is solved.
Drawings
FIG. 1 is a flowchart of a method for recording with a channel by a USB device according to the present invention;
fig. 2 is a block diagram of an apparatus for recording audio with a channel of a USB device according to the present invention.
In the figure: 11. a memory; 12. a processor; 13. a communication bus; 14. a network interface.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.
Example one
The invention provides a preferred embodiment, a method for recording sound along with a channel by USB equipment, which comprises the following steps:
and step S1, acquiring information of all USB recording devices connected with the all-in-one machine device and each USB recording device, and storing each USB recording device in a system corresponding to each channel of the all-in-one machine device according to the priority.
Generally, the source channels of the all-in-one machine device include an Android channel, an HDMI channel, an OPS channel, and a Type-C channel. Each channel corresponds to a corresponding device, such as an Android device, an OPS device, and the like. The USB interfaces of the all-in-one machine equipment are multiple, the channels followed by the USB interfaces are realized through the USB Switch, and the equipment under the corresponding channels identifies the USB equipment mounted on the USB interfaces. The channels in the embodiment all refer to information source channels of the all-in-one machine equipment.
Preferably, the USB interface is connected to a variety of USB devices, such as a recording device, a keyboard, a mouse, a speaker, and other devices. The invention mainly aims at a method for recording by a recording device following a channel, so that the USB device average value recording device is provided.
Preferably, step S1 further includes: the method comprises the steps of obtaining information of USB recording equipment mounted on each USB interface of all-in-one equipment, obtaining corresponding Card ID, Card Name and connection state according to the information of each USB recording equipment, and storing each USB recording equipment in a custom equipment management list in a system according to priority.
For example, when in an Android channel, a custom device management list is added to a usbsa manager (Android advanced audio management service) in an Android system to store a Card ID and a Card Name of each all-in-one device, and USB devices in the custom device management list are managed according to a connection state of each USB device.
And step S2, switching the first channel where the all-in-one machine device is located to the second channel, and then switching the USB interface of the all-in-one machine device to the second channel.
Preferably, the USB Switch is controlled to Switch the USB interface of the all-in-one device to the second channel.
The second channel and the first channel belong to different channels and are any one of the information source channels of the all-in-one machine equipment.
Preferably, in the present embodiment, the Android channel is switched to the OPS channel as an example to describe:
that is, the first channel is an Android channel, and the second channel is an OPS channel:
when the channel of the all-in-one machine device is switched, the USB interface of the all-in-one machine device is switched to the OPS channel by controlling the USB Switch, at the moment, the OPS device can identify the USB device mounted on the USB interface, and the USB devices not only comprise USB recording devices, but also comprise other devices such as a keyboard, a mouse and the like. Meanwhile, as the USB interface is switched to the OPS channel, for the Android device, the USB devices are removed, and the Android device system cannot detect any USB device.
Step S3, starting the recording application APP, and judging whether the recording application APP belongs to the second channel, if so, operating the recording application APP to complete corresponding operation; if not, step S5 is executed.
When running, the recording Application APP calls a corresponding recording device to record through a corresponding API (Application Program Interface). And the corresponding API interface is matched to the source channel. Therefore, for example, for a recording application APP in an Android system, the recording application APP needs to call a USB recording device to realize recording in an Android channel.
At this time, the recording operation cannot be realized because no USB device exists in the Android channel. Therefore, the USB interface associated with the USB recording equipment is switched to the channel where the application APP is located from the second channel, so that the recording application APP can identify the corresponding USB recording equipment to realize recording.
Step S4, obtaining a channel to which the recording application APP belongs, obtaining an associated USB interface according to the recording application APP, and further obtaining an associated USB Switch according to the associated USB interface.
Generally, one USB Switch controls the switching of multiple USB interfaces. The USB equipment connected with the USB interface comprises other USB equipment besides the USB recording equipment. In order to ensure that the system under the second channel runs normally, when the USB interface is switched to the channel to which the recording application APP belongs, not all the USB interfaces are switched, but the associated USB equipment called by the recording application APP is switched to the channel to which the application APP belongs, so that the USB recording equipment can be identified under the channel to which the recording application APP belongs.
And step S5, switching the associated USB interface to the channel to which the recording application APP belongs by controlling the associated USB Switch.
And step S6, acquiring the associated USB recording equipment mounted on the associated USB interface, and searching the USB recording equipment to be used from the system according to the preset rule and the associated USB recording equipment.
Since the USB Switch may control a plurality of USB interfaces, each USB interface may mount a USB device, where the USB device may be a USB recording device or other devices. Not all the USB recording devices in the all-in-one machine equipment are controlled by the same USB Switch, so that the USB recording devices mounted on the USB interfaces under the channels to which the recording applications APP belong are only part of the USB recording devices stored in the all-in-one machine equipment. Therefore, the mounted associated USB recording devices are obtained according to the associated USB interfaces, the associated USB recording devices can be identified and obtained under the channel to which the recording application APP belongs, and other USB recording devices can be identified and obtained under the second channel.
Generally, a recording application APP has a default value when calling a USB recording device, but the associated USB recording device in the present invention is not all USB recording devices in the system. Therefore, the USB recording equipment to be used can be obtained by matching the associated USB recording equipment through the preset rule, and then the information of the USB recording equipment to be used is obtained according to the information of each USB recording equipment stored in the system channel.
Preferably, the embodiment further obtains the USB recording device to be used by matching the device information input by the user from one or more associated USB recording devices, and then obtains the information of the USB recording device to be used from the system for subsequent invocation.
And step S7, running the recording application APP, and calling the USB recording equipment to be used according to the information of the USB recording equipment to be used to realize recording.
Because the USB recording equipment to be used is under the channel to which the recording application APP belongs, the recording can be realized by calling the USB recording equipment to be used.
Preferably, the step S7 further includes resetting the data stream according to the to-be-used USB recording device to the Audio Record interface, and uploading the recording data to the recording application APP. Specifically, a process is created by calling an Audio Record interface, and recorded data is fetched from corresponding sound card equipment according to a thread and returned to the application APP. The Audio Record interface is an API of Android standard recording, and a process is created after the recording application APP is started.
Preferably, after the recording operation is completed, the associated USB interface is switched to the current channel where the all-in-one machine device is located, that is, the method further includes:
and step S8, after the operation of running the recording application APP is finished, acquiring a channel where the all-in-one machine is located, and switching the associated USB interface to the channel where the all-in-one machine is located by controlling the USB Switch, so as to recover the mounting of the USB equipment under the channel where the all-in-one machine is located. Namely, after the recording is finished, the associated USB interface is restored to the channel where the current all-in-one machine device is located.
And the channel where the all-in-one machine equipment is located is a second channel, the associated USB interface is switched to the second channel, and the mounting of the USB equipment is recovered.
Example two
The invention provides a device for recording sound of a USB device along with a channel. As shown in fig. 2, an internal structure of the apparatus for recording audio with a channel by a USB device according to an embodiment of the present invention is schematically illustrated.
In this embodiment, the device for recording the sound with the channel by the USB device may be a PC (Personal Computer), or may also be a terminal device such as a smart phone, a tablet Computer, or a portable Computer. The device for recording the USB equipment along with the channel at least comprises: a processor 12, a communication bus 13, a network interface 14, and a memory 11.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of an apparatus for USB device recording with a channel, for example a hard disk of the apparatus for USB device recording with a channel. The memory 11 may also be an external storage device of the apparatus for recording the USB device with the channel in other embodiments, such as a plug-in hard disk provided on the apparatus for recording the USB device with the channel, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 11 may also include both an internal storage unit and an external storage device of an apparatus for recording with a channel by a USB device. The memory 11 may be used not only to store application software installed in an apparatus for recording with a USB device and various types of data, such as codes of a program for recording with a USB device, etc., but also to temporarily store data that has been output or is to be output.
Processor 12, which in some embodiments may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip, is configured to execute program codes stored in memory 11 or process data, such as executing a program recorded by a USB device along with a channel.
The communication bus 13 is used to realize connection communication between these components.
The network interface 14 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), and is typically used to establish a communication link between the device for recording with a channel of the USB device and other electronic devices.
Optionally, the apparatus for recording with channel by USB device may further include a user interface, the user interface may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further include a standard wired interface and a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in a device for recording with a USB device along a channel and for displaying a visual user interface.
While FIG. 2 shows only one USB device channel-recording apparatus having components 11-14 and a USB device channel-recording program, those skilled in the art will appreciate that the configuration shown in FIG. 2 does not constitute a limitation of an apparatus for USB device channel-recording and may include fewer or more components than shown, or some components in combination, or a different arrangement of components.
In the embodiment of the apparatus for recording a sound with a channel by a USB device shown in fig. 2, a program for recording a sound with a channel by a USB device is stored in the memory 11; when the processor 12 executes the program recorded with the channel by the USB device stored in the memory 11, the following steps are implemented:
a first switching step: after the first channel of the all-in-one machine equipment is switched to the second channel, the USB interface of the all-in-one machine equipment is switched to the second channel;
an application starting step: starting a recording application APP, and executing a second switching step when the recording application APP does not belong to the application in the second channel;
a second switching step: acquiring a channel to which the recording application APP belongs, acquiring an associated USB interface according to the recording application APP, and switching the associated USB interface to the channel to which the recording application APP belongs;
equipment selection: acquiring associated USB recording equipment mounted on each associated USB interface, matching the associated USB recording equipment according to a preset rule to obtain USB recording equipment to be used, and acquiring information of the USB recording equipment to be used from the system;
recording: and running the recording APP, and calling the USB recording equipment to be used according to the information of the USB recording equipment to be used to realize recording.
Further, still include: an equipment acquisition step: the method comprises the steps of obtaining information of USB recording equipment mounted on each USB interface of all-in-one equipment, obtaining corresponding Card ID, Card Name and connection state according to the information of each USB recording equipment, and storing each USB recording equipment in a custom equipment management list in a system according to priority.
Further, switching the USB interface of the all-in-one machine device to the second channel in the first switching step includes switching the USB interface to the second channel through a USB Switch;
switching the associated USB interface to the channel to which the recording application APP belongs in the second switching step specifically includes: and acquiring the associated USB Switch according to the associated USB interface, and switching the associated USB interface to the channel to which the recording application APP belongs through the associated USB Switch.
Further, the recording step further comprises: and (3) a recovery step: and after the recording is finished, switching the associated USB interface to the second channel by controlling the associated USB Switch, thereby recovering the USB recording equipment which can be identified by the system under the second channel.
Further, the first channel is an Android channel, and the second channel is any one of an OPS channel, a Type-C channel and an HDMI channel.
Further, the recording step further comprises: and resetting the data stream according to the USB recording equipment to be used to the Audio Record interface, and uploading the recording data to the application APP.
Further, the recording step further comprises: and calling an Audio Record interface to create a process, and acquiring recorded data from the corresponding sound card equipment according to the thread and returning the recorded data to the application APP.
Further, the device selecting step further comprises: and acquiring the equipment information input by the user to obtain the USB recording equipment to be used from the associated USB recording equipment.
EXAMPLE III
The invention also provides a storage medium which is a computer readable storage medium and is stored with a computer program, wherein the computer program is a program recorded by the USB equipment along with the channel; when the program recorded by the USB equipment along with the channel is executed by the processor, the following steps are realized:
a first switching step: after the first channel of the all-in-one machine equipment is switched to the second channel, the USB interface of the all-in-one machine equipment is switched to the second channel;
an application starting step: starting a recording application APP, and executing a second switching step when the recording application APP does not belong to the application in the second channel;
a second switching step: acquiring a channel to which the recording application APP belongs, acquiring an associated USB interface according to the recording application APP, and switching the associated USB interface to the channel to which the recording application APP belongs;
equipment selection: acquiring associated USB recording equipment mounted on each associated USB interface, matching the associated USB recording equipment according to a preset rule to obtain USB recording equipment to be used, and acquiring information of the USB recording equipment to be used from the system;
recording: and running the recording APP, and calling the USB recording equipment to be used according to the information of the USB recording equipment to be used to realize recording.
Further, still include: an equipment acquisition step: the method comprises the steps of obtaining information of USB recording equipment mounted on each USB interface of all-in-one equipment, obtaining corresponding Card ID, Card Name and connection state according to the information of each USB recording equipment, and storing each USB recording equipment in a custom equipment management list in a system according to priority.
Further, switching the USB interface of the all-in-one machine device to the second channel in the first switching step includes switching the USB interface to the second channel through a USB Switch;
switching the associated USB interface to the channel to which the recording application APP belongs in the second switching step specifically includes: and acquiring the associated USB Switch according to the associated USB interface, and switching the associated USB interface to the channel to which the recording application APP belongs through the associated USB Switch.
Further, the recording step further comprises: and (3) a recovery step: and after the recording is finished, switching the associated USB interface to the second channel by controlling the associated USB Switch, thereby recovering the USB recording equipment which can be identified by the system under the second channel.
Further, the first channel is an Android channel, and the second channel is any one of an OPS channel, a Type-C channel and an HDMI channel.
Further, the recording step further comprises: and resetting the data stream according to the USB recording equipment to be used to the Audio Record interface, and uploading the recording data to the application APP.
Further, the recording step further comprises: and calling an Audio Record interface to create a process, and acquiring recorded data from the corresponding sound card equipment according to the thread and returning the recorded data to the application APP.
Further, the device selecting step further comprises: and acquiring the equipment information input by the user to obtain the USB recording equipment to be used from the associated USB recording equipment.
The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention are within the protection scope of the present invention.

Claims (9)

1. A method for recording sound with a channel by a USB device is characterized by comprising the following steps:
a first switching step: after the first channel of the all-in-one machine equipment is switched to the second channel, the USB interface of the all-in-one machine equipment is switched to the second channel;
an application starting step: starting a recording application APP, and executing a second switching step when the recording application APP does not belong to the application in the second channel;
a second switching step: acquiring a channel to which the recording application APP belongs, acquiring an associated USB interface according to the recording application APP, and switching the associated USB interface to the channel to which the recording application APP belongs;
equipment selection: acquiring associated USB recording equipment mounted on an associated USB interface, matching the associated USB recording equipment according to a preset rule to obtain USB recording equipment to be used, and acquiring information of the USB recording equipment to be used from a system;
recording: running a recording application APP, and calling the USB recording equipment to be used according to the information of the USB recording equipment to be used to realize recording; further comprising: an equipment acquisition step: the method comprises the steps of obtaining information of USB recording equipment mounted on each USB interface of all-in-one equipment, obtaining corresponding Card ID, Card Name and connection state according to the information of each USB recording equipment, and storing each USB recording equipment in a custom equipment management list in a system according to priority.
2. The method according to claim 1, wherein the switching the USB interface of the all-in-one device to the second channel in the first switching step comprises switching the USB interface to the second channel via a USB Switch;
switching the associated USB interface to the channel to which the recording application APP belongs in the second switching step specifically includes: and acquiring the associated USB Switch according to the associated USB interface, and switching the associated USB interface to the channel to which the recording application APP belongs through the associated USB Switch.
3. The method of claim 2, wherein the step of recording further comprises, after the step of recording: and (3) a recovery step: and after the recording is finished, switching the associated USB interface to the second channel by controlling the associated USB Switch, thereby recovering the USB recording equipment which can be identified by the system under the second channel.
4. The method for recording with a channel of a USB device according to claim 1, wherein the first channel is an Android channel, and the second channel is any one of an OPS channel, a Type-C channel, and an HDMI channel.
5. The method of claim 4, wherein the recording step further comprises: and resetting the data stream according to the USB recording equipment to be used to the Audio Record interface, and uploading the recording data to the application APP.
6. The method of claim 5, wherein the recording step further comprises: and calling an Audio Record interface to create a process, and acquiring recorded data from the corresponding sound card equipment according to the thread and returning the recorded data to the application APP.
7. The method of claim 1, wherein the device selection step further comprises: and acquiring the equipment information input by the user to obtain the USB recording equipment to be used from the associated USB recording equipment.
8. An apparatus for recording sound with a channel of a USB device, comprising a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the computer program is a program for recording sound with a channel of the USB device, the apparatus comprising: the steps of a method for recording with a channel by a USB device according to any one of claims 1-7 are implemented when the processor executes the program for recording with a channel by the USB device.
9. A storage medium, the storage medium being a computer-readable storage medium having stored thereon a computer program, the computer program being a program for a USB device to record audio over a channel, the computer program comprising: the steps of a method for a USB device to record with a channel as claimed in any one of claims 1 to 7 when executed by a processor.
CN202011338817.1A 2020-11-25 2020-11-25 Method and device for recording sound along with channel of USB (Universal Serial bus) equipment and storage medium Active CN112509608B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011338817.1A CN112509608B (en) 2020-11-25 2020-11-25 Method and device for recording sound along with channel of USB (Universal Serial bus) equipment and storage medium
PCT/CN2021/132256 WO2022111435A1 (en) 2020-11-25 2021-11-23 Method and apparatus for recording by usb device along with channel, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011338817.1A CN112509608B (en) 2020-11-25 2020-11-25 Method and device for recording sound along with channel of USB (Universal Serial bus) equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112509608A CN112509608A (en) 2021-03-16
CN112509608B true CN112509608B (en) 2022-03-08

Family

ID=74958571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011338817.1A Active CN112509608B (en) 2020-11-25 2020-11-25 Method and device for recording sound along with channel of USB (Universal Serial bus) equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112509608B (en)
WO (1) WO2022111435A1 (en)

Family Cites Families (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002099362A (en) * 2000-09-26 2002-04-05 Alps Electric Co Ltd Peripheral equipment for computer
KR100711568B1 (en) * 2005-12-29 2007-04-27 삼성전자주식회사 Portable terminal and method capable of performing high speed data transmission of having hard disk and multi-tasking in the same state
KR100753974B1 (en) * 2006-01-05 2007-08-31 주식회사 텔레칩스 Audio system
JP4721447B2 (en) * 2006-10-20 2011-07-13 キヤノン株式会社 Imaging apparatus, content management method, program, and storage medium
JP5279410B2 (en) * 2008-08-25 2013-09-04 ティアック株式会社 Recording / playback device
CN101635815A (en) * 2009-08-19 2010-01-27 南京码硕信息技术有限公司 Wireless vehicle-mounted USB flash drive video recording control device with hard disk backup function
CN101834931B (en) * 2010-05-06 2012-11-28 沈阳帝信通信股份有限公司 IP (Internet Protocol) centralized dictation system and method
EP2521039B1 (en) * 2011-05-06 2013-10-16 Harman Becker Automotive Systems GmbH Optical disc drive with USB interface
JP5376001B2 (en) * 2012-03-29 2013-12-25 ティアック株式会社 Recording / playback device
CN204463831U (en) * 2015-01-26 2015-07-08 泉州市铁通电子设备有限公司 A kind of digital voice recording instrument of centralized and distributing memory function
CN104658536A (en) * 2015-03-09 2015-05-27 深圳酷派技术有限公司 Recording mode switching method, recording mode switching system and terminal
CN105094808B (en) * 2015-06-26 2018-04-10 努比亚技术有限公司 A kind of control device and method
CN105374377B (en) * 2015-10-20 2018-10-12 北京小鸟听听科技有限公司 Control method, control system and the speaker that more room audios play
CN107018465B (en) * 2016-01-27 2019-08-16 环旭电子股份有限公司 The gapless way of recording suitable for Android system
US20170277650A1 (en) * 2016-03-25 2017-09-28 Le Holdings (Beijing) Co., Ltd. User equipment and method for data transmission
CN105895144A (en) * 2016-03-31 2016-08-24 乐视控股(北京)有限公司 Voice recording control method and device based on earphones
WO2017181365A1 (en) * 2016-04-20 2017-10-26 华为技术有限公司 Earphone channel control method, related apparatus, and system
CN106058983B (en) * 2016-06-30 2019-01-29 维沃移动通信有限公司 A kind of charging control circuit, electronic equipment and charge control method
EP3282366B1 (en) * 2016-08-11 2022-01-19 GN Audio A/S A usb enabled base station for a headset
CN108076416B (en) * 2016-11-18 2021-11-12 中兴通讯股份有限公司 Control method and device of USBTypeC earphone and terminal
CN106713817B (en) * 2017-01-24 2020-04-10 厦门靠谱知识产权服务有限公司 System and method for switching recording sound source in video call
CN107948663A (en) * 2017-11-20 2018-04-20 腾讯数码(天津)有限公司 A kind of way of recording, client and terminal device
CN108052312B (en) * 2017-12-06 2021-04-27 晶晨半导体(上海)股份有限公司 Method for realizing multi-channel recording based on android system and audio system
CN108111954B (en) * 2017-12-25 2020-10-20 微鲸科技有限公司 Audio input control method and device
CN109101484B (en) * 2018-07-06 2023-04-18 平安科技(深圳)有限公司 Recording file processing method and device, computer equipment and storage medium
CN108959153B (en) * 2018-08-01 2021-04-06 广州视源电子科技股份有限公司 All-in-one machine, data continuous transmission method, device, equipment and storage medium
CN109062842B (en) * 2018-08-15 2020-10-23 深圳市道通智能航空技术有限公司 Communication method and device for remote controller and mobile terminal and remote controller
CN109101213B (en) * 2018-08-23 2021-07-06 广州酷狗计算机科技有限公司 Method, device and storage medium for controlling sound card to transmit audio
CN110085268B (en) * 2019-05-10 2021-02-19 深圳市智微智能科技股份有限公司 Method and system for real-time switching of double MICs of Android advertisement machine, advertisement machine and storage medium
CN110290475A (en) * 2019-05-30 2019-09-27 深圳米唐科技有限公司 Vehicle-mounted man-machine interaction method, system and computer readable storage medium

Also Published As

Publication number Publication date
WO2022111435A1 (en) 2022-06-02
CN112509608A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
US11765265B2 (en) Incoming call alert method and terminal
CN104869305B (en) Method and apparatus for processing image data
US9529755B2 (en) Apparatus and method of recognizing external device in a communication system
US10347166B2 (en) Electronic device and operating method thereof
US9380463B2 (en) Method for displaying lock screen and electronic device thereof
CN108604200A (en) The method and terminal device of the failure of processing terminal equipment
KR102157858B1 (en) Apparatas and method for reducing a power consumption in an electronic device
KR20150066876A (en) Method for controlling an user interface and an electronic device
US9729815B2 (en) Method and electronic device for controlling content integrity using numerical data
KR20150073354A (en) method and apparatus processing an object provided via a display
KR102071530B1 (en) Apparatas and method for proposing a response manual of occurring denial in an electronic device
CN110795172B (en) Foreground process control method and device, electronic equipment and storage medium
US10237087B2 (en) Method for controlling transmission speed and electronic device thereof
CN106095605B (en) A kind of abnormality eliminating method and device of display terminal
CN110324432B (en) Data processing method, device and medium applied to terminal and computing equipment
US20160019602A1 (en) Advertisement method of electronic device and electronic device thereof
CN112509608B (en) Method and device for recording sound along with channel of USB (Universal Serial bus) equipment and storage medium
CN110336804B (en) Multimedia file recovery method, device and equipment
CN109495119B (en) Radio frequency switch control method, device, mobile terminal and storage medium
CN115437551A (en) Data cloning method, device, storage medium and computer program product
CN107102811B (en) Display object operation method and device
US9692241B2 (en) Method for improving call quality during battery charging and electronic device thereof
CN110704157A (en) Application starting method, related device and medium
US20180300160A1 (en) Host and Component Relationship between Applications
US10592081B2 (en) Multi-language input method and multi-language input apparatus using the same

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
CB02 Change of applicant information

Address after: Room 238, room 406, 1 Yichuang street, Huangpu District, Guangzhou, Guangdong 510700

Applicant after: Guangzhou langguo Electronic Technology Co.,Ltd.

Address before: Room 238, room 406, 1 Yichuang street, Huangpu District, Guangzhou, Guangdong 510700

Applicant before: GUANGZHOU LANGO ELECTRONIC SCIENCE & TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant