CN104978246A - Sound restoration method and device - Google Patents

Sound restoration method and device Download PDF

Info

Publication number
CN104978246A
CN104978246A CN201510379089.1A CN201510379089A CN104978246A CN 104978246 A CN104978246 A CN 104978246A CN 201510379089 A CN201510379089 A CN 201510379089A CN 104978246 A CN104978246 A CN 104978246A
Authority
CN
China
Prior art keywords
computing machine
detection module
sound
front panel
described computing
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.)
Pending
Application number
CN201510379089.1A
Other languages
Chinese (zh)
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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510379089.1A priority Critical patent/CN104978246A/en
Publication of CN104978246A publication Critical patent/CN104978246A/en
Pending legal-status Critical Current

Links

Landscapes

  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention discloses a sound restoration method and a sound restoration device, which are applied to a computer and used for receiving a sound restoration instruction from a user; after receiving the sound repairing instruction, detecting whether a sound card device of the computer is disabled; if so, enabling the sound card device. By applying the embodiment of the invention, a user does not need to master more computer knowledge and does not need to request the user, and the user only needs to send a voice repairing instruction to the computer, so that the computer can automatically repair the voice, the operation process of voice repairing is reduced, and the voice repairing efficiency is improved.

Description

A kind of sound restorative procedure and device
Technical field
The present invention relates to multimedia technology field, particularly a kind of sound restorative procedure and device.
Background technology
Sound card is ingredient the most basic in multimedia technology, is to realize a kind of hardware that sound wave and digital signal change mutually.The basic function of sound card is changed the original sound signal from microphone, tape, CD, outputs to the sound such as earphone, loudspeaker equipment, or makes musical instrument send beautiful sound by MIDI (Musical Instrument Digital Interface) (MIDI).
If the sound equipment of computing machine can not be sounded, solution of the prior art is: artificial inspection computing machine, find out is which kind of reason causes the sound equipment of computing machine not sound, again according to this reason, the artificial reparation carrying out sound, such as, detect that the sound card equipment of computing machine is disabled, artificial enables sound card equipment.
But apply the method for above-mentioned artificial reparation sound, operating process is loaded down with trivial details, and efficiency is lower, and needs user to grasp more computer literacy, require higher to user.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of sound restorative procedure and device, to make calculating function repair sound automatically, reduces the operating process that sound is repaired, improves the efficiency that sound is repaired.
For achieving the above object, the embodiment of the invention discloses a kind of sound restorative procedure, being applied to computing machine, comprising:
The sound received from user repairs instruction;
After receiving described sound and repairing instruction, whether the sound card equipment detecting described computing machine is disabled;
If so, then described sound card equipment is enabled.
Preferably, whether the sound card equipment of the described computing machine of described detection is disabled, comprising:
Whether the state value detecting described sound card equipment is the first preset value, if so, then represents that described sound card equipment is disabled.
Preferably, described method also comprises:
If it is disabled to detect that described sound card equipment does not have, then whether the audio service detecting described computing machine is in running status;
If not, then described audio service is started.
Preferably, whether the audio service of the described computing machine of described detection is in running status, comprising:
Whether the state value detecting described audio service is the second preset value, if so, then represents that described audio service is in running status;
The described audio service of described startup, comprising:
The state value of described audio service is set to the second preset value.
Preferably, described method also comprises:
If detect that described audio service is in running status, then whether the sound equipment detecting described computing machine is connected with described computing machine by the front panel jack of described computing machine;
If so, then whether the front panel jack detecting described computing machine is enabled, and if not, then enables the front panel jack of described computing machine.
Preferably, whether the front panel jack of the described computing machine of described detection is enabled, and comprising:
Whether the key assignments detecting the key of the front panel jack representing computing machine in described computing machine registration table is the 3rd preset value, if not, then represent that the jack of the front panel of described computing machine is not enabled;
The described front panel jack enabling described computing machine, comprising:
Described key assignments is set to the 3rd preset value.
Preferably, described method also comprises:
If detect described sound equipment not to be connected with described computing machine by the front panel jack of described computing machine, or detect that the front panel socket of described computing machine is enabled, then detect described computing machine and whether be in mute state;
If detect that described computing machine is in mute state, then being set to non-mute state and the volume of described computing machine being set to be greater than 0 by described computing machine.
Preferably, described method also comprises:
If detect that described computing machine is in non-mute state, whether the volume detecting described computing machine is 0;
If so, then the volume of described computing machine is set to be greater than 0.
For achieving the above object, the embodiment of the invention discloses a kind of sound prosthetic device, being applied to computing machine, comprising: sound is repaired command reception module, first detection module and sound card equipment and enabled module,
Described sound repairs command reception module, repairs instruction for the sound received from user;
Described first detection module, after receiving described sound reparation instruction in described sound reparation command reception module, whether the sound card equipment detecting described computing machine is disabled;
Described sound card equipment enables module, for when described first detection module testing result is for being, enables described sound card equipment.
Preferably, described first detection module, specifically for:
After described sound reparation command reception module receives described sound reparation instruction, whether the state value detecting described sound card equipment is the first preset value, if so, then represents that described sound card equipment is disabled.
Preferably, described device also comprises: the second detection module and audio service start module,
Described second detection module, for when described first detection module testing result is no, whether the audio service detecting described computing machine is in running status;
Described audio service starts module, for when described second detection module testing result is no, starts described audio service.
Preferably, described second detection module, specifically for:
When described first detection module testing result is no, whether the state value detecting described audio service is the second preset value, if so, then represents that described audio service is in running status;
Described audio service starts module, specifically for:
When described second detection module testing result is no, the state value of described audio service is set to the second preset value.
Preferably, described device also comprises: the 3rd detection module, the 4th detection module and front panel jack enable module,
Described 3rd detection module, for when described second detection module testing result is for being, whether the sound equipment detecting described computing machine is connected with described computing machine by the front panel jack of described computing machine;
Described 4th detection module, for when described 3rd detection module testing result is for being, whether the front panel jack detecting described computing machine is enabled;
Described front panel jack enables module, for when described 4th detection module testing result is no, enables the front panel jack of described computing machine.
Preferably, described 4th detection module, specifically for:
When described 3rd detection module testing result is for being, whether the key assignments detecting the key of the front panel jack representing computing machine in described computing machine registration table is the 3rd preset value, if not, then represent that the jack of the front panel of described computing machine is not enabled;
Described front panel jack enables module, specifically for:
When described 4th detection module testing result is no, described key assignments is set to the 3rd preset value.
Preferably, described device also comprises: the 5th detection module and the first volume arrange module,
Described 5th detection module, for be no in described 3rd detection module testing result or described 4th detection module testing result for being, detect described computing machine and whether be in mute state;
Described first volume arranges module, for when described 5th detection module testing result is for being, and being set to described computing machine non-mute state and the volume of described computing machine be set to be greater than 0.
Preferably, described device also comprises: the 6th detection module and the second volume arrange module,
Described 6th detection module, for when described 5th detection module testing result is no, whether the volume detecting described computing machine is 0;
Described second volume arranges module, for when described 6th detection module testing result is for being, the volume of described computing machine is set to be greater than 0.
As seen from the above technical solutions, embodiments provide a kind of sound restorative procedure and device, be applied to computing machine, the sound received from user repairs instruction; After receiving described sound and repairing instruction, whether the sound card equipment detecting described computing machine is disabled; If so, then described sound card equipment is enabled.Grasp more computer literacy without the need to user, to user's no requirement (NR), user only need send the instruction of sound reparation to computing machine, computing machine just can be repaired sound automatically, decreases the operating process that sound is repaired, improves the remediation efficiency of sound.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The first schematic flow sheet being applied to the sound restorative procedure of computing machine that Fig. 1 provides for the embodiment of the present invention;
The second schematic flow sheet being applied to the sound restorative procedure of computing machine that Fig. 2 provides for the embodiment of the present invention;
The third schematic flow sheet being applied to the sound restorative procedure of computing machine that Fig. 3 provides for the embodiment of the present invention;
The 4th kind of schematic flow sheet being applied to the sound restorative procedure of computing machine that Fig. 4 provides for the embodiment of the present invention;
The 5th kind of schematic flow sheet being applied to the sound restorative procedure of computing machine that Fig. 5 provides for the embodiment of the present invention;
The first structural representation being applied to the sound prosthetic device of computing machine that Fig. 6 provides for the embodiment of the present invention;
The second structural representation being applied to the sound prosthetic device of computing machine that Fig. 7 provides for the embodiment of the present invention;
The third structural representation being applied to the sound prosthetic device of computing machine that Fig. 8 provides for the embodiment of the present invention;
The 4th kind of structural representation being applied to the sound prosthetic device of computing machine that Fig. 9 provides for the embodiment of the present invention;
The 5th kind of structural representation being applied to the sound prosthetic device of computing machine that Figure 10 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Below by specific embodiment, the present invention is described in detail.
The first schematic flow sheet being applied to the sound restorative procedure of computing machine that Fig. 1 provides for the embodiment of the present invention, can comprise:
S101: the sound received from user repairs instruction;
In actual applications, computing machine can provide sound to repair the entrance of instruction, such as button, switch, input frame etc. to user, and user can be sounded reparation instruction to computing machine by this entrance.
S102: after receiving described sound and repairing instruction, whether the sound card equipment detecting described computing machine is disabled, if so, performs S103;
Concrete, whether the sound card equipment detecting described computing machine is disabled, and whether the state value that can detect described sound card equipment is the first preset value, if so, then represents that described sound card equipment is disabled.
For the computing machine of microsoft operation system, system provides the error code of equipment in equipment manager, wherein, code 1 represents that this equipment is not correctly arranged, code 3 represents that the driver of this equipment may damage, or the internal memory of system or other inadequate resource, and code 4 represents because the driver of equipment or system registry damage, so cannot normally run, etc.
If detect that the error code of described sound card equipment in equipment manager is 22, then represent that sound card equipment is disabled.
It should be noted that, it is above-mentioned that for the computing machine of microsoft operation system, to detecting, whether the sound card equipment of described computing machine is disabled is described, be only the instantiation whether sound card equipment that detects described computing machine is disabled, the present invention does not limit the specific implementation whether not disabledly detecting the sound card equipment of described computing machine, and any possible implementation can be applied in the present invention.
S103: enable described sound card equipment.
The present invention is embodiment illustrated in fig. 1 in application, more computer literacy is grasped without the need to user, to user's no requirement (NR), user only need send the instruction of sound reparation to computing machine, computing machine just can detect automatically and the disabled computing machine caused of sound card equipment repaired due to computing machine is noiseless, decrease the operating process that sound is repaired, improve the remediation efficiency of sound.
Consider in actual applications, the sound card equipment of computing machine is initiate mode, but computing machine is noiseless, the embodiment of the present invention also provides the second sound restorative procedure, shown in Figure 2, the present invention embodiment illustrated in fig. 2 on basis embodiment illustrated in fig. 1 increase below two steps
S104: whether the audio service detecting described computing machine is in running status, if not, performs S105;
Concrete, whether the state value detecting described audio service is the second preset value, if so, then represents that described audio service is in running status.
In actual applications, can in the API that provides of call operation system OpenSCManager functional link to Service Control Manager, the OpenService function that call operation system provides opens audio service, such as: Windows Audio serves, Windows Audio Endpoint Builder serves, the QueryServiceStatus function that call operation system provides returns the state value of audio service, wherein, the state value of audio service is that 4 expression services are in running status, if the state value of the audio service that QueryServiceStatus function returns is not 4, then represent that audio service is not in running status.
It should be noted that, whether the above-mentioned audio service to detecting described computing machine is in running status is described, be only the instantiation whether audio service detecting described computing machine is in running status, the present invention does not limit the specific implementation whether audio service detecting described computing machine is in running status, and any possible implementation can be applied in the present invention.
S105: start described audio service.
Concrete, the state value of described audio service can be set to the second preset value.
In actual applications, in S104, the state value of the audio service that QueryServiceStatus function returns is not 4, then the ChangeServiceStatus function that provides of call operation system, is set to 4 by the state value of audio service.
The present invention is embodiment illustrated in fig. 2 in application, and can also repair because computer audio service is not in running status, the computing machine caused is noiseless.
Consider in actual applications, the audio service of computing machine is running status, but computing machine is noiseless, the embodiment of the present invention also provides the third sound restorative procedure, shown in Figure 3, the present invention embodiment illustrated in fig. 3 on basis embodiment illustrated in fig. 2 increase below three steps
S106: whether the sound equipment detecting described computing machine is connected with described computing machine by the front panel jack of described computing machine, if so, performs S107;
Generally, with snap switch in the audio jack of the front panel of computing machine, when this jack inserts the plug of sound equipment, plug extrudes this snap switch, cause this snap switch to be closed, when this switch is closed, the state value of the audio jack representing front panel in computing machine is set to true, when COMPUTER DETECTION is true to the state value of the audio jack of front panel, represent that sound equipment is connected with computing machine by the front panel jack of computing machine.
It should be noted that, the present invention does not limit the specific implementation whether sound equipment detecting described computing machine is connected with described computing machine by the front panel jack of described computing machine, and any possible implementation can be applied in the present invention.
S107: whether the front panel jack detecting described computing machine is enabled, if not, performs S108;
Concrete, whether the key assignments that can detect the key of the front panel jack representing computing machine in described computing machine registration table is the 3rd preset value, if not, then represent that the jack of the front panel of described computing machine is not enabled.
Under normal circumstances, desk-top computer can respectively arrange one group of audio sockets in the front panel of computer cabinet and rearmounted panel, wherein, each group audio sockets at least comprises an audio frequency input socket and an audio output jack, for microsoft operation system, sound card for Realtek High Definition Audio, can detect path in described computing machine registration table is:
{ whether the most significant digit that the attribute in 4D36E96C-E325-11CE-BFC1-08002BE10318} 0000 Settings is called the key assignments of JackCtrl is 1 to HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Control Class, if be not 1, then represent that the jack of the front panel of computing machine is not enabled.
It should be noted that, whether the above-mentioned front panel jack to detecting described computing machine is enabled and is described, be only the instantiation whether the front panel jack that detects described computing machine is enabled, the present invention does not limit the specific implementation whether the front panel jack detecting described computing machine is enabled, and any possible implementation can be applied in the present invention.
S108: the front panel jack enabling described computing machine.
Concrete, described key assignments can be set to the 3rd threshold value preset.
In actual applications, in S107, detect that the most significant digit of the key assignments of JackCtrl is not 1, then the most significant digit of the key assignments of JackCtrl is set to 1.
The present invention is embodiment illustrated in fig. 3 in application, and can also repair owing to not enabled at the front panel jack of desktop computer computing machine, the front panel jack of desk-top computer by sound equipment connection, the computing machine caused is noiseless.
Consider in actual applications, when the front panel jack of computing machine is enabled, computing machine is noiseless, the embodiment of the present invention also provides the 4th kind of sound restorative procedure, shown in Figure 4, the present invention embodiment illustrated in fig. 4 on basis embodiment illustrated in fig. 3 increase below two steps
S109: detect described computing machine and whether be in mute state, if so, performs S110;
Be described for Microsoft's Win7 operating system below.
The interface IMMDeviceEnumerator utilizing system to provide, call the GetDefaultAudioEndpoint method that IMMDeviceEnumerator provides, call the GetMute method that IAudioEndpointVolume interface provides, obtain computing machine and whether be in mute state, if the rreturn value of GetMute method is false, then computing machine is in mute state.
S110: being set to described computing machine non-mute state and the volume of described computing machine is set to be greater than 0.
For Microsoft Win7 operating system, then utilize the interface IMMDeviceEnumerator that system provides, call the GetDefaultAudioEndpoint method that IMMDeviceEnumerator provides, call the SetMute method that IAudioEndpointVolume interface provides, computing machine is set to non-mute state, and the volume of computing machine is set to be greater than 0 by the SetMasterVolumeLevelScalar method that calling IAudioEndpointVolume interface provides.
It should be noted that, above-mentionedly whether be in mute state for Microsoft Win7 operating system to detecting described computing machine and described computing machine is set to non-mute state, and the volume of described computing machine is set to be greater than 0 is described, be only and detect described computing machine and whether be in mute state and described computing machine is set to non-mute state, and the volume of described computing machine is set to the instantiation being greater than 0, whether the present invention is not in mute state to detecting described computing machine and described computing machine is set to non-mute state, and the specific implementation being set to the volume of described computing machine to be greater than 0 limits, any possible implementation can be applied in the present invention.
The present invention is embodiment illustrated in fig. 4 in application, and can also repair because computing machine is in mute state, the computing machine caused is noiseless.
Consider in actual applications, although may there is computing machine be not in mute state, computing machine is noiseless, the embodiment of the present invention also provides the 5th kind of sound restorative procedure, shown in Figure 5, the present invention embodiment illustrated in fig. 5 on basis embodiment illustrated in fig. 4 increase below two steps
S111: whether the volume detecting described computing machine is 0, if so, then performs S112;
For Microsoft Win7 operating system, then utilize the interface IMMDeviceEnumerator that system provides, call the GetDefaultAudioEndpoint method that IMMDeviceEnumerator provides, call the GetMasterVolumeLevelScalar method that IAudioEndpointVolume interface provides, obtain the volume of computing machine, if the rreturn value of GetMasterVolumeLevelScalar method is 0, then the volume of computing machine is 0.
S112: the volume of described computing machine is set to be greater than 0.
For Microsoft Win7 operating system, then utilize the interface IMMDeviceEnumerator that system provides, call the GetDefaultAudioEndpoint method that IMMDeviceEnumerator provides, call the SetMasterVolumeLevelScalar method that IAudioEndpointVolume interface provides, the volume of computing machine is set to be greater than 0.
It should be noted that, above-mentionedly be whether 0 for Microsoft Win7 operating system to the volume detecting described computing machine and the volume of described computing machine is set to be greater than 0 is described, be only the volume detecting described computing machine be whether 0 and the volume of described computing machine is set to be greater than 0 an instantiation, the present invention not to the volume detecting described computing machine be whether 0 and the specific implementation that is set to the volume of described computing machine to be greater than 0 limit, any possible implementation can be applied in the present invention.
The present invention is embodiment illustrated in fig. 5 in application, and the volume can also repaired due to computing machine is 0, and the computing machine caused is noiseless.
Corresponding with above-mentioned embodiment of the method, the embodiment of the present invention also provides the sound prosthetic device being applied to computing machine.
The first structural representation being applied to the sound prosthetic device of computing machine that Fig. 6 provides for the embodiment of the present invention, can comprise: sound is repaired command reception module 201, first detection module 202 and sound card equipment and enabled module 203, wherein,
Sound repairs command reception module 201, repairs instruction for the sound received from user;
First detection module 202, after receiving described sound reparation instruction in sound reparation command reception module 201, whether the sound card equipment detecting described computing machine is disabled;
The first detection module 202 of the embodiment of the present invention, specifically for:
After sound reparation command reception module 201 receives described sound reparation instruction, whether the state value detecting described sound card equipment is the first preset value, if so, then represents that described sound card equipment is disabled.
Sound card equipment enables module 203, for when first detection module 202 testing result is for being, enables described sound card equipment.
The present invention is embodiment illustrated in fig. 6 in application, more computer literacy is grasped without the need to user, to user's no requirement (NR), user only need send the instruction of sound reparation to computing machine, computing machine just can detect automatically and the disabled computing machine caused of sound card equipment repaired due to computing machine is noiseless, decrease the operating process that sound is repaired, improve the remediation efficiency of sound.
The second structural representation being applied to the sound prosthetic device of computing machine that Fig. 7 provides for the embodiment of the present invention, the present invention is embodiment illustrated in fig. 7 on basis embodiment illustrated in fig. 6, increases the second detection module 204 and audio service startup module 205, wherein,
Second detection module 204, for when first detection module 202 testing result is no, whether the audio service detecting described computing machine is in running status;
Audio service starts module 205, for when the second detection module 204 testing result is no, starts described audio service.
Second detection module 204 of the embodiment of the present invention, specifically for: when first detection module 202 testing result is no, whether the state value detecting described audio service is the second preset value, if so, then represents that described audio service is in running status;
The audio service of the embodiment of the present invention starts module 205, specifically for:
When the second detection module 204 testing result is no, the state value of described audio service is set to the second preset value.
The present invention is embodiment illustrated in fig. 7 in application, and can also repair because computer audio service is not in running status, the computing machine caused is noiseless.
The third structural representation being applied to the sound prosthetic device of computing machine that Fig. 8 provides for the embodiment of the present invention, the present invention is embodiment illustrated in fig. 8 on basis embodiment illustrated in fig. 7, increase the 3rd detection module 206 and the 4th detection module 207 and front panel jack and enable module 208, wherein
3rd detection module 206, for when the second detection module 204 testing result is for being, whether the sound equipment detecting described computing machine is connected with described computing machine by the front panel jack of described computing machine;
4th detection module 207, for when the 3rd detection module 206 testing result is for being, whether the front panel jack detecting described computing machine is enabled;
Front panel jack enables module 208, for when the 4th detection module 207 testing result is no, enables the front panel jack of described computing machine.
4th detection module 207 of the embodiment of the present invention, specifically for:
When the 3rd detection module 206 testing result is for being, whether the key assignments detecting the key of the front panel jack representing computing machine in described computing machine registration table is the 3rd preset value, if not, then represent that the jack of the front panel of described computing machine is not enabled;
The front panel jack of the embodiment of the present invention enables module 208, specifically for:
When the 4th detection module 207 testing result is no, described key assignments is set to the 3rd preset value.
The present invention is embodiment illustrated in fig. 8 in application, and can also repair owing to not enabled at the front panel jack of desktop computer computing machine, the front panel jack of desk-top computer by sound equipment connection, the computing machine caused is noiseless.
The 4th kind of structural representation being applied to the sound prosthetic device of computing machine that Fig. 9 provides for the embodiment of the present invention, the present invention is embodiment illustrated in fig. 9 on basis embodiment illustrated in fig. 8, and increase the 5th detection module 209 and the first volume arrange module 210, wherein,
5th detection module 209, for be no in the 3rd detection module 206 testing result or the 4th detection module 207 testing result for being, detect described computing machine and whether be in mute state;
First volume arranges module 210, for when the 5th detection module 209 testing result is for being, and being set to described computing machine non-mute state and the volume of described computing machine be set to be greater than 0.
The present invention is embodiment illustrated in fig. 9 in application, and can also repair because computing machine is in mute state, the computing machine caused is noiseless.
The 5th kind of structural representation being applied to the sound prosthetic device of computing machine that Figure 10 provides for the embodiment of the present invention, the present invention is embodiment illustrated in fig. 10 on basis embodiment illustrated in fig. 9, and increase the 6th detection module 211 and the second volume arrange module 212, wherein,
6th detection module 211, for when the 5th detection module 210 testing result is no, whether the volume detecting described computing machine is 0;
Second volume arranges module 212, for when the 6th detection module 211 testing result is for being, the volume of described computing machine is set to be greater than 0.
The present invention is embodiment illustrated in fig. 10 in application, and the volume can also repaired due to computing machine is 0, and the computing machine caused is noiseless.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this instructions all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realized in said method embodiment is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (16)

1. a sound restorative procedure, is applied to computing machine, it is characterized in that, described method comprises:
The sound received from user repairs instruction;
After receiving described sound and repairing instruction, whether the sound card equipment detecting described computing machine is disabled;
If so, then described sound card equipment is enabled.
2. method according to claim 1, is characterized in that, whether the sound card equipment of the described computing machine of described detection is disabled, comprising:
Whether the state value detecting described sound card equipment is the first preset value, if so, then represents that described sound card equipment is disabled.
3. method according to claim 1, is characterized in that, described method also comprises:
If it is disabled to detect that described sound card equipment does not have, then whether the audio service detecting described computing machine is in running status;
If not, then described audio service is started.
4. method according to claim 3, is characterized in that, whether the audio service of the described computing machine of described detection is in running status, comprising:
Whether the state value detecting described audio service is the second preset value, if so, then represents that described audio service is in running status;
The described audio service of described startup, comprising:
The state value of described audio service is set to the second preset value.
5. method according to claim 3, is characterized in that, described method also comprises:
If detect that described audio service is in running status, then whether the sound equipment detecting described computing machine is connected with described computing machine by the front panel jack of described computing machine;
If so, then whether the front panel jack detecting described computing machine is enabled, and if not, then enables the front panel jack of described computing machine.
6. method according to claim 5, is characterized in that, whether the front panel jack of the described computing machine of described detection is enabled, and comprising:
Whether the key assignments detecting the key of the front panel jack representing computing machine in described computing machine registration table is the 3rd preset value, if not, then represent that the jack of the front panel of described computing machine is not enabled;
The described front panel jack enabling described computing machine, comprising:
Described key assignments is set to the 3rd preset value.
7. method according to claim 5, is characterized in that, described method also comprises:
If detect described sound equipment not to be connected with described computing machine by the front panel jack of described computing machine, or detect that the front panel socket of described computing machine is enabled, then detect described computing machine and whether be in mute state;
If detect that described computing machine is in mute state, then being set to non-mute state and the volume of described computing machine being set to be greater than 0 by described computing machine.
8. method according to claim 7, is characterized in that, described method also comprises:
If detect that described computing machine is in non-mute state, then whether the volume detecting described computing machine is 0;
If so, then the volume of described computing machine is set to be greater than 0.
9. a sound prosthetic device, is applied to computing machine, it is characterized in that, described device comprises: sound is repaired command reception module, first detection module and sound card equipment and enabled module,
Described sound repairs command reception module, repairs instruction for the sound received from user;
Described first detection module, after receiving described sound reparation instruction in described sound reparation command reception module, whether the sound card equipment detecting described computing machine is disabled;
Described sound card equipment enables module, for when described first detection module testing result is for being, enables described sound card equipment.
10. device according to claim 9, is characterized in that, described first detection module, specifically for:
After described sound reparation command reception module receives described sound reparation instruction, whether the state value detecting described sound card equipment is the first preset value, if so, then represents that described sound card equipment is disabled.
11. devices according to claim 9, is characterized in that, described device also comprises: the second detection module and audio service start module,
Described second detection module, for when described first detection module testing result is no, whether the audio service detecting described computing machine is in running status;
Described audio service starts module, for when described second detection module testing result is no, starts described audio service.
12. devices according to claim 11, is characterized in that, described second detection module, specifically for:
When described first detection module testing result is no, whether the state value detecting described audio service is the second preset value, if so, then represents that described audio service is in running status;
Described audio service starts module, specifically for:
When described second detection module testing result is no, the state value of described audio service is set to the second preset value.
13. devices according to claim 11, is characterized in that, described device also comprises: the 3rd detection module, the 4th detection module and front panel jack enable module,
Described 3rd detection module, for when described second detection module testing result is for being, whether the sound equipment detecting described computing machine is connected with described computing machine by the front panel jack of described computing machine;
Described 4th detection module, for when described 3rd detection module testing result is for being, whether the front panel jack detecting described computing machine is enabled;
Described front panel jack enables module, for when described 4th detection module testing result is no, enables the front panel jack of described computing machine.
14. devices according to claim 13, is characterized in that, described 4th detection module, specifically for:
When described 3rd detection module testing result is for being, whether the key assignments detecting the key of the front panel jack representing computing machine in described computing machine registration table is the 3rd preset value, if not, then represent that the jack of the front panel of described computing machine is not enabled;
Described front panel jack enables module, specifically for:
When described 4th detection module testing result is no, described key assignments is set to the 3rd preset value.
15. devices according to claim 13, is characterized in that, described device also comprises: the 5th detection module and the first volume arrange module,
Described 5th detection module, for be no in described 3rd detection module testing result or described 4th detection module testing result for being, detect described computing machine and whether be in mute state;
Described first volume arranges module, for when described 5th detection module testing result is for being, and being set to described computing machine non-mute state and the volume of described computing machine be set to be greater than 0.
16. devices according to claim 15, is characterized in that, described device also comprises: the 6th detection module and the second volume arrange module,
Described 6th detection module, for when described 5th detection module testing result is no, whether the volume detecting described computing machine is 0;
Described second volume arranges module, for when described 6th detection module testing result is for being, the volume of described computing machine is set to be greater than 0.
CN201510379089.1A 2015-06-30 2015-06-30 Sound restoration method and device Pending CN104978246A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510379089.1A CN104978246A (en) 2015-06-30 2015-06-30 Sound restoration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510379089.1A CN104978246A (en) 2015-06-30 2015-06-30 Sound restoration method and device

Publications (1)

Publication Number Publication Date
CN104978246A true CN104978246A (en) 2015-10-14

Family

ID=54274777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510379089.1A Pending CN104978246A (en) 2015-06-30 2015-06-30 Sound restoration method and device

Country Status (1)

Country Link
CN (1) CN104978246A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445753A (en) * 2016-09-07 2017-02-22 北京金山安全软件有限公司 Terminal sound repairing method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6279056B1 (en) * 1997-04-30 2001-08-21 Compaq Computer Corporation Computer system capable of playing audio CDs in a CD-ROM drive independent of an operating system
CN1770709A (en) * 2004-11-01 2006-05-10 中兴通讯股份有限公司 ADSL fault diagnosis method
CN101373455A (en) * 2007-08-24 2009-02-25 英业达股份有限公司 Device and method for testing sound input and output of voice card
FR2950146A1 (en) * 2009-09-15 2011-03-18 Sierra Wireless Inc Tested device e.g. single ended loudspeaker, diagnostic device for use in e.g. radio communication terminal, has determination unit determining current operation state of ohmic device based on diagnostic signal
CN102594944A (en) * 2012-03-19 2012-07-18 杭州华三通信技术有限公司 Automatic configuration method and network device
CN103475532A (en) * 2012-06-08 2013-12-25 腾讯科技(深圳)有限公司 Hardware detection method and system thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6279056B1 (en) * 1997-04-30 2001-08-21 Compaq Computer Corporation Computer system capable of playing audio CDs in a CD-ROM drive independent of an operating system
CN1770709A (en) * 2004-11-01 2006-05-10 中兴通讯股份有限公司 ADSL fault diagnosis method
CN101373455A (en) * 2007-08-24 2009-02-25 英业达股份有限公司 Device and method for testing sound input and output of voice card
FR2950146A1 (en) * 2009-09-15 2011-03-18 Sierra Wireless Inc Tested device e.g. single ended loudspeaker, diagnostic device for use in e.g. radio communication terminal, has determination unit determining current operation state of ohmic device based on diagnostic signal
CN102594944A (en) * 2012-03-19 2012-07-18 杭州华三通信技术有限公司 Automatic configuration method and network device
CN103475532A (en) * 2012-06-08 2013-12-25 腾讯科技(深圳)有限公司 Hardware detection method and system thereof

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
段培旺 和 仲治国 著: "《主板维修实战 从入门到精通》", 30 June 2010 *
电脑报 编著: "《电脑硬师傅——硬件、装机疑难排障手册》", 31 May 2008 *
电脑诊所督查: "电脑没有声音,用电脑管家修复...(来自管家客户端)", 《HTTP://BBS.GUANJIA.QQ.COM/FORUM.PHP?MOD=VIEWTHREAD&TID=994656&ORDERTYPE=1》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445753A (en) * 2016-09-07 2017-02-22 北京金山安全软件有限公司 Terminal sound repairing method and device and electronic equipment
WO2018045835A1 (en) * 2016-09-07 2018-03-15 北京金山安全软件有限公司 Method and apparatus for restoring sounds of terminal, and electronic device

Similar Documents

Publication Publication Date Title
CN105264507B (en) The apparatus and method for identifying external equipment in a communications system
CN102404666A (en) Audio jack detection and configuration
CN103430151A (en) Method and apparatus for configuring resource
CN109656627A (en) Starting method, activation system and the relevant apparatus of hard disk in a kind of BIOS
CN110337055A (en) Detection method, device, electronic equipment and the storage medium of speaker
CN107423213A (en) A kind of filec descriptor distribution detection method and device
US20180324222A1 (en) Testing distributed applications that have an established exchange in an advanced message queuing protocol (amqp) message broker
US7840948B2 (en) Automation of keyboard accessibility testing
CN105980999B (en) Terminal connection device, processing information execution system, and processing information execution method
CN107506494B (en) Document handling method, mobile terminal and computer readable storage medium
CN109582524A (en) A kind of test method, system and electronic equipment and storage medium
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN105208221A (en) Method and device for automatically adjusting communication voice
CN104978246A (en) Sound restoration method and device
CN105204876A (en) System starting method and electronic equipment
CN115099819A (en) Data pushing method and device, storage medium and electronic equipment
CN104007969A (en) Booting sound playing method and device
CN104969568A (en) Circuit, terminal and earphone for detecting the key movements of the headset
CN114945188A (en) Bluetooth device testing method and device, electronic device and readable storage medium
CN110795388B (en) Binary file processing method, system, equipment and readable storage medium
CN114501286A (en) Bluetooth connection testing method and device
US7383429B2 (en) Configuring settings of a computer system to be compatible with an operating system
WO2019134288A1 (en) Method, apparatus and computer device for implementing view controller
CN104750453A (en) Information processing method and electronic equipment
CN106326010B (en) A kind of control plays the method and intelligent sound box of synchronization

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151014

RJ01 Rejection of invention patent application after publication