TW201944251A - Volume adjustment method and apparatus, electronic device and storage medium - Google Patents
Volume adjustment method and apparatus, electronic device and storage mediumInfo
- Publication number
- TW201944251A TW201944251A TW107117810A TW107117810A TW201944251A TW 201944251 A TW201944251 A TW 201944251A TW 107117810 A TW107117810 A TW 107117810A TW 107117810 A TW107117810 A TW 107117810A TW 201944251 A TW201944251 A TW 201944251A
- Authority
- TW
- Taiwan
- Prior art keywords
- volume
- volume adjustment
- current
- adjustment
- increment
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000007613 environmental effect Effects 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 7
- 230000007423 decrease Effects 0.000 claims description 5
- 230000001960 triggered effect Effects 0.000 claims description 2
- 230000006870 function Effects 0.000 description 8
- 230000003247 decreasing effect Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000003491 array Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 206010052137 Ear discomfort Diseases 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/22—Procedures used during a speech recognition process, e.g. man-machine dialogue
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/22—Procedures used during a speech recognition process, e.g. man-machine dialogue
- G10L2015/223—Execution procedure of a spoken command
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Acoustics & Sound (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Circuit For Audible Band Transducer (AREA)
- Holo Graphy (AREA)
- Signal Processing Not Specific To The Method Of Recording And Reproducing (AREA)
- Electrophonic Musical Instruments (AREA)
Abstract
Description
本發明係關於音量調節技術領域,例如關於一種音量調節方法、裝置、電子設備及存儲介質。 The present invention relates to the technical field of volume adjustment, for example, to a method, device, electronic device, and storage medium for volume adjustment.
音量調節系統常用於各種電子設備中,可根據使用者的需求對電子設備的音量進行調節。 The volume adjustment system is often used in various electronic devices, and the volume of the electronic device can be adjusted according to the needs of the user.
各種電子設備的音量調節系統都具有通用的音量調節方式,用於調節電子設備當前的音量。例如,使用者使用語音控制的音響時,可對音響藉由語音輸入「大聲點」或「小聲點」的控制指令。針對這類通用的音量調節指令,先前技術主要按照固定的調整增量調整方式增大或減小相應的音量。 The volume adjustment system of various electronic devices has a universal volume adjustment method for adjusting the current volume of the electronic device. For example, when a user uses a voice-controlled sound, he can input a control command of "loud point" or "lower point" to the sound by voice. For such universal volume adjustment instructions, the prior art mainly increased or decreased the corresponding volume according to a fixed adjustment increment adjustment method.
發明人在實現本發明的過程中,發現先前技術存在如下缺陷:先前技術中的音量調節方式按照固定的調整增量調整方式增大或減小,可能會發生電子設備輸出的音量過高或過低而無法達到使用者要求的情況。例如,如果當前音量比較大,在對音量進行調節時仍按照固定的調整增量遞增,會使得一次音量調整結果超出使用者的實際調整預期,難以提供最佳收聽效果。 In the process of implementing the present invention, the inventor found that the prior art has the following defects: the volume adjustment method in the prior art is increased or decreased according to a fixed adjustment increment adjustment method, and the volume output by the electronic device may be too high or too high. It is too low to meet user requirements. For example, if the current volume is relatively large, and the volume is still adjusted by a fixed adjustment increment when the volume is adjusted, the volume adjustment result will exceed the user's actual adjustment expectation, and it will be difficult to provide the best listening effect.
本發明發明態樣提供一種音量調節方法、裝置、電子設備及存儲介質,可解決先前技術中,針對使用者的通用性的音量調整指令採用固定的調整增量調整當前音量所引起的使用者體驗不佳的問題,使得音量調節更具針對性,有效避免一次音量調整結果超出使用者的實際調整預期的問題,從而提高使用者體驗。 Aspects of the present invention provide a volume adjustment method, device, electronic device and storage medium, which can solve the user experience caused by adjusting the current volume by using a fixed adjustment increment for the general volume adjustment instruction of the user in the prior art. Poor problems make the volume adjustment more targeted, effectively avoiding the problem that the volume adjustment result exceeds the user's actual adjustment expectation, thereby improving the user experience.
第一方面,本發明之態樣提供一種音量調節方法,包含:獲取通用音量調節指令,並根據前述通用音量調節指令識別音量調節方向;根據前述音量調節方向以及當前音量,確定音量調整增量;以及使用前述音量調整增量,對前述當前音量進行調整。 According to a first aspect, an aspect of the present invention provides a volume adjustment method, including: obtaining a universal volume adjustment instruction, and identifying a volume adjustment direction according to the foregoing general volume adjustment instruction; determining a volume adjustment increment according to the foregoing volume adjustment direction and the current volume; And use the aforementioned volume adjustment increment to adjust the aforementioned current volume.
第二方面,本發明之態樣進一步提供一種音量調節裝置,包含:指令識別模組,設置為獲取通用音量調節指令,並根據前述通用音量調節指令識別音量調節方向;增量確定模組,設置為根據前述音量調節方向以及當前音量,確定音量調整增量;以及音量調整模組,設置為使用前述音量調整增量,對前述當前音量進行 調整。 According to a second aspect, the aspect of the present invention further provides a volume adjustment device, including: an instruction recognition module configured to obtain a universal volume adjustment instruction, and identifying a volume adjustment direction according to the foregoing general volume adjustment instruction; an incremental determination module, setting In order to determine the volume adjustment increment according to the foregoing volume adjustment direction and the current volume; and a volume adjustment module configured to use the foregoing volume adjustment increment to adjust the current volume.
第三方面,本發明之態樣進一步提供一種電子設備,前述電子設備包含:一個或多個處理器;存儲裝置,設置為存儲一個或多個程式;當前述一個或多個程式被前述一個或多個處理器執行,使得前述一個或多個處理器實現關於上述的任一前述的音量調節方法。 According to a third aspect, an aspect of the present invention further provides an electronic device, the foregoing electronic device includes: one or more processors; a storage device configured to store one or more programs; when the one or more programs are The multiple processors execute such that the aforementioned one or more processors implement any of the aforementioned volume adjustment methods.
第四方面,本發明之態樣進一步提供一種電腦存儲介質,其存儲有電腦程式,該程式被處理器執行時實現關於上述的任一前述的音量調節方法。 According to a fourth aspect, the aspect of the present invention further provides a computer storage medium that stores a computer program that, when executed by a processor, implements any of the foregoing volume adjustment methods.
本發明解決先前技術之發明態樣中,針對使用者的通用性的音量調整指令採用固定的調整增量調整當前音量所引起的使用者體驗不佳的問題,實現根據當前音量採用不同音量調整增量進行音量調節,使得音量調節更具針對性,有效避免一次音量調整結果超出使用者的實際調整預期的問題,從而提高使用者體驗。 The present invention solves the problem of poor user experience caused by using a fixed adjustment increment to adjust the current volume for a user ’s universal volume adjustment instruction in the aspect of the invention according to the prior art. The volume adjustment can make the volume adjustment more targeted, effectively avoiding the problem that the volume adjustment result exceeds the user's actual adjustment expectation, thereby improving the user experience.
310‧‧‧指令識別模組 310‧‧‧Command Identification Module
320‧‧‧增量確定模組 320‧‧‧Incremental determination module
330‧‧‧音量調整模組 330‧‧‧Volume adjustment module
412‧‧‧電子設備 412‧‧‧electronic equipment
414‧‧‧外部設備 414‧‧‧External equipment
416‧‧‧處理器 416‧‧‧Processor
418‧‧‧匯流排 418‧‧‧Bus
420‧‧‧網路介面卡 420‧‧‧Network Interface Card
422‧‧‧輸入/輸出(I/O)接口 422‧‧‧Input / Output (I / O) interface
424‧‧‧顯示器 424‧‧‧Display
426‧‧‧程式模組 426‧‧‧Program module
428‧‧‧存儲裝置 428‧‧‧Storage device
430‧‧‧隨機存取記憶體 430‧‧‧RAM
432‧‧‧高速緩衝記憶體 432‧‧‧Cache memory
434‧‧‧存儲系統 434‧‧‧Storage System
436‧‧‧程式模組 436‧‧‧Program Module
【圖1】實施例一提供的一種音量調節方法的流程圖;【圖2】實施例二提供的一種音量調節方法的流程圖;【圖3】實施例三提供的一種音量調節裝置的示意圖; 【圖4】實施例四提供的一種電子設備的結構示意圖。 [Figure 1] Flow chart of a volume adjustment method provided in Embodiment 1; [Figure 2] Flow chart of a volume adjustment method provided in Embodiment 2; [Figure 3] Schematic view of a volume adjustment device provided in Embodiment 3; FIG. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment.
為了便於描述,圖式中僅示出與本發明相關的部分而非全部內容。在更加詳細地討論示例性實施例之前,應當提到的為部分示例性實施例被描述成作為流程圖描繪的處理或方法。雖然流程圖將各項操作(或步驟)描述成順序的處理,但是其中的許多操作可被並行地、併發地或同時實施。此外,各項操作的順序可被重新安排。當其操作完成時前述處理可被終止,但是亦可具有未包含在圖式中的附加步驟。前述處理可對應於方法、函數、電腦程序、次常式、副程式等等。 For ease of description, the drawings only show some but not all of the content related to the present invention. Before discussing the exemplary embodiments in more detail, it should be mentioned that some of the exemplary embodiments are described as processes or methods depicted as flowcharts. Although flowcharts describe operations (or steps) as sequential processing, many of these operations can be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The foregoing processing may be terminated when its operation is completed, but may also have additional steps not included in the drawings. The foregoing processing may correspond to a method, a function, a computer program, a subroutine, a subroutine, and the like.
實施例一 Example one
圖1係實施例一提供的一種音量調節方法的流程圖,本實施例可適用於根據當前音量調節音量的情況,該方法可由音量調節裝置來執行,該裝置可由軟體及硬體中的至少一種方式來實現,並一般可集成在電子設備中(示例性的,多種能夠藉由語音或通用調節按鍵對音量進行固定增量調節的電子設備,例如,移動音箱或車載音箱等),該方法包含如下操作: FIG. 1 is a flowchart of a volume adjustment method according to the first embodiment. This embodiment is applicable to the situation that the volume is adjusted according to the current volume. The method can be executed by a volume adjustment device. The device can be at least one of software and hardware. This method can be implemented, and can generally be integrated into electronic devices (for example, a variety of electronic devices capable of adjusting the volume by a fixed increment by using voice or a universal adjustment button, such as a mobile speaker or a car speaker, etc.). The method includes As follows:
S110、獲取通用音量調節指令,並根據前述通用音量調節指令識別音量調節方向。 S110. Acquire a general volume adjustment instruction, and identify a volume adjustment direction according to the foregoing general volume adjustment instruction.
其中,通用音量調節指令係指對電子設備中的音量進行通用性調整指令。亦即沒有指明具體的音量調整增量(例如,增大50%或音量調整至最大抑或最小音量的50%等)的指令。 The universal volume adjustment instruction refers to a universal adjustment instruction for the volume in the electronic device. That is, there is no instruction to specify a specific volume adjustment increment (for example, increase 50% or adjust the volume to 50% of the maximum or minimum volume, etc.).
電子設備可根據通用音量調節指令對當前音量進行固定增 量的音量調節。通用音量調節指令可為當前使用者藉由語音輸入的語音控制指令,亦可為電子設備在滿足設定觸發條件後,相應觸發生成的系統控制指令,抑或,亦可進一步為當前使用者點觸電子設備中設置的虛擬按鈕,或旋轉電子設備中設置的硬體按鈕所觸發生成的指令。音量調節方向一般包含增大音量以及減小音量兩種方向。 The electronic device can adjust the volume of the current volume by a fixed increase according to the general volume adjustment instruction. The universal volume adjustment instruction can be a voice control instruction input by the current user through voice, or a system control instruction generated by the electronic device after the trigger condition is met, or it can further tap the electronics for the current user. Instructions generated by virtual buttons set in the device, or by rotating hardware buttons set in the electronic device. The volume adjustment direction generally includes two directions: increasing the volume and decreasing the volume.
針對先前技術在檢測到通用音量調整指令時,僅採取單一的音量調整增量對當前音量進行調整的方式(例如,針對「大聲點」的音量調整指令,將當前音量增大全部音量範圍的5%),提出採取不同的音量調整增量對當前音量進行調整的改進。 According to the prior art, when a universal volume adjustment instruction is detected, only a single volume adjustment increment is used to adjust the current volume (for example, for a "loud point" volume adjustment instruction, the current volume is increased by the entire volume range. 5%), proposed to adopt different volume adjustment increments to improve the current volume adjustment.
S120、根據前述音量調節方向以及當前音量,確定音量調整增量。 S120. Determine a volume adjustment increment according to the foregoing volume adjustment direction and the current volume.
其中,本實施例中的音量調整增量並非固定的,必須依據當前音量確定。例如,當當前音量位於全部音量範圍的30%-60%之間時,音量調整增量可設置為全部音量範圍的10%或5%。當當前音量位於全部音量範圍的60%-80%之間時,音量調整增量可設置為全部音量範圍的5%或2%。當當前音量位於全部音量範圍的80%-100%之間時,音量調整增量可設置為1%。 The volume adjustment increment in this embodiment is not fixed and must be determined based on the current volume. For example, when the current volume is between 30% and 60% of the full volume range, the volume adjustment increment can be set to 10% or 5% of the full volume range. When the current volume is between 60% -80% of the full volume range, the volume adjustment increment can be set to 5% or 2% of the full volume range. When the current volume is between 80% and 100% of the full volume range, the volume adjustment increment can be set to 1%.
亦即:在本實施例中,發明人充分考慮到,在不同的當前音量的條件下,使用者對音量調整程度的需求可能為完全不同的,例如:當前音量很低的條件下,使用者希望調大點音量時,使用者實際需要的音量增大增量的增量程度一般會遠遠大於當前音量很高的條件下,使用者希望調大點音量時,實際需要的音量增大增量的增量程度。 That is, in this embodiment, the inventors have fully considered that under different current volume conditions, the user's needs for volume adjustment may be completely different. For example, under the condition that the current volume is very low, the user When you want to increase the volume, the actual increase in volume required by the user will generally be much larger than the current high volume. When the user wants to increase the volume, the actual volume needs to increase. The degree of increment of the amount.
相應的,可根據預先設定的查詢表,及計算公式中的至少一個,基於前述音量調節方向以及當前音量,確定音量調整增量。其中,在同一音量調節方向下,可針對不同的當前音量設置不同的音量調整增量;亦可針對不同的當前音量範圍,設置不同的音量調整增量。 Correspondingly, the volume adjustment increment may be determined based on at least one of a preset lookup table and a calculation formula based on the aforementioned volume adjustment direction and the current volume. In the same volume adjustment direction, different volume adjustment increments can be set for different current volumes; different volume adjustment increments can also be set for different current volume ranges.
本實施例根據音量調節方向以及當前音量確定音量調整增量,並藉由音量調節方向確定音量調整增量的正負值(正值為增大音量,負值為減小音量),能夠考慮當前音量較小或當前音量較大時的兩種特殊情況,分別執行針對性的音量調整增量。當音量調節方向為增大音量時,當前音量越大,音量調整增量幅度相應較小;當前音量越小,其音量調整增量幅度相應較大。當音量調節方向為減小音量時,當前音量越大,其音量調整增量幅度相應較大;當前音量越小,音量調整增量幅度相應較小,從而有效避免一次音量調整結果超出使用者的實際調整預期。 In this embodiment, the volume adjustment increment is determined according to the volume adjustment direction and the current volume, and the positive and negative values of the volume adjustment increment are determined by the volume adjustment direction (a positive value increases the volume, a negative value decreases the volume), and the current volume can be considered For two special cases when the volume is low or the current volume is high, targeted volume adjustment increments are performed respectively. When the volume adjustment direction is to increase the volume, the larger the current volume, the smaller the volume adjustment increment; the smaller the current volume, the larger the volume adjustment increment. When the volume adjustment direction is to decrease the volume, the larger the current volume is, the larger the volume adjustment increment is; the smaller the current volume is, the smaller the volume adjustment increment is, so as to effectively avoid a volume adjustment result exceeding the user's Actually adjust expectations.
在一實施例中,如使用者藉由語音輸入「靜音」,則電子設備無需考慮當前音量確定音量調整增量,直接將電子設備的音量從當前音量調節為0。 In an embodiment, if the user inputs "mute" by voice, the electronic device does not need to consider the current volume to determine the volume adjustment increment, and directly adjusts the volume of the electronic device from the current volume to 0.
S130、使用前述音量調整增量,對前述當前音量進行調整。 S130. Use the foregoing volume adjustment increment to adjust the current volume.
在本實施例中,藉由音量調節方向以及當前音量確定音量調整增量,並根據確定的音量調整增量,對當前音量進行調整。 In this embodiment, the volume adjustment increment is determined by the volume adjustment direction and the current volume, and the current volume is adjusted according to the determined volume adjustment increment.
示例性,可藉由音量調整增量的正負表達相應的音量調整方向,並可直接將當前音量與前述音量調整增量的累加結果,作為最終的音量調整結果。 For example, the corresponding volume adjustment direction can be expressed by the positive and negative of the volume adjustment increment, and the cumulative result of the current volume and the foregoing volume adjustment increment can be directly used as the final volume adjustment result.
本實施例藉由獲取的通用音量調節指令識別音量調節方向; 根據音量調節方向以及當前音量,確定音量調整增量並對當前音量進行調整,解決先前技術中,針對使用者的通用性的音量調整指令採用固定的調整增量調整當前音量所引起的使用者體驗不佳的問題,實現根據當前音量採用不同音量調整增量進行音量調節,使得音量調節更具針對性,有效避免一次音量調整結果超出使用者的實際調整預期的問題,從而提高使用者體驗。 In this embodiment, the general volume adjustment instruction is used to identify the volume adjustment direction. According to the volume adjustment direction and the current volume, the volume adjustment increment is determined and the current volume is adjusted to solve the general volume adjustment for users in the prior art. The instruction uses a fixed adjustment increment to adjust the current volume caused by the poor user experience. It implements different volume adjustment increments to adjust the volume according to the current volume, making the volume adjustment more targeted and effectively avoiding a single volume adjustment result exceeding The user actually adjusts the expected problems to improve the user experience.
在一個選擇性實施例中,前述通用音量調節指令可為使用者輸入的語音控制指令。 In an optional embodiment, the aforementioned general volume adjustment instruction may be a voice control instruction input by a user.
其中,語音控制指令為當前使用者藉由語音輸入的調節音量的指令。例如,「請大聲一點」、「請小聲一點」以及「請靜音」等語音控制指令。 The voice control instruction is an instruction for adjusting the volume input by the current user through voice. For example, "please speak louder," "please speak quietly," and "please mute."
在一個選擇性實施例中,根據前述音量調節方向以及當前音量,確定音量調整增量,可包含:根據前述音量調節方向以及當前音量,查詢增量調整對照表,確定前述音量調整增量;其中,在前述增量調整對照表中,不同的當前音量範圍,在不同的音量調節方向下,對應不同的音量調整增量。 In an optional embodiment, determining the volume adjustment increment according to the foregoing volume adjustment direction and the current volume may include: querying the increment adjustment comparison table according to the foregoing volume adjustment direction and the current volume to determine the foregoing volume adjustment increment; In the aforementioned incremental adjustment comparison table, different current volume ranges and different volume adjustment directions correspond to different volume adjustment increments.
其中,增量調節對照表記載不同當前音量範圍與音量調整增量數值之間的對應關係。舉例而言,音量調節方向為增大音量時,增量調整對照表可係:[0%,20%]:15%;(20%,60%]:10%;(60%,80%]:5%;(80%,99%]:1%。音量調節方向為減小音量時,增量調整對照表可係:[0%,20%]:-2%;(20%,60%]:-5%;(60%,80%]:-10%;(80%,99%]:-15%。 The increment adjustment comparison table records the correspondence between different current volume ranges and the volume adjustment increment value. For example, when the volume adjustment direction is to increase the volume, the incremental adjustment comparison table can be: [0%, 20%]: 15%; (20%, 60%]: 10%; (60%, 80%) : 5%; (80%, 99%]: 1%. When the volume adjustment direction is to decrease the volume, the incremental adjustment comparison table can be: [0%, 20%]: -2%; (20%, 60% ]: -5%; (60%, 80%): -10%; (80%, 99%]: -15%.
其中,0%、5%、10%、15%、20%、60%、80%以及99%此 等數字指電子設備總音量的百分比數對應的音量值,如總音量的20%。 Among them, 0%, 5%, 10%, 15%, 20%, 60%, 80%, and 99% numbers refer to the volume value corresponding to the percentage of the total volume of the electronic device, such as 20% of the total volume.
在一實施例中,為了簡化增量調整對照表,可對不同的當前音量範圍對應存儲兩種數值,這兩種數值可為同一種數值的正值及負值,可根據音量調節方向確定選擇正值或負值。 In an embodiment, in order to simplify the incremental adjustment comparison table, two kinds of values can be stored corresponding to different current volume ranges. The two kinds of values can be positive and negative values of the same kind of value, and the selection can be determined according to the direction of volume adjustment. Positive or negative values.
在一個選擇性實施例中,根據前述音量調節方向以及當前音量,確定音量調整增量,包含:獲取與前述音量調節方向匹配的音量調節公式;根據前述當前音量,以及前述音量調節公式,確定前述音量調整增量;其中,在與增大音量的音量調節方向匹配的第一音量調節公式中,前述音量調整增量的數值大小與前述當前音量呈反比,在與減小音量的音量調節方向匹配的第二音量調節公式中,前述音量調整增量的數值大小與前述當前音量呈正比。 In an optional embodiment, determining the volume adjustment increment according to the volume adjustment direction and the current volume includes: obtaining a volume adjustment formula that matches the volume adjustment direction; and determining the foregoing according to the current volume and the volume adjustment formula. Volume adjustment increment; wherein, in the first volume adjustment formula matching the volume adjustment direction of increasing the volume, the magnitude of the volume adjustment increment is inversely proportional to the current volume, and matches the volume adjustment direction of decreasing the volume. In the second volume adjustment formula, the value of the volume adjustment increment is proportional to the current volume.
在一實施例中,本實施例除了可根據音量調節方向以及當前音量,查詢增量調整對照表,確定音量調整增量,進一步可獲取與音量調節方向匹配的音量調節公式;根據當前音量,以及音量調節公式,確定音量調整增量。 In one embodiment, in this embodiment, in addition to querying the volume adjustment direction table according to the volume adjustment direction and the current volume, determining the volume adjustment increment, and further obtaining a volume adjustment formula matching the volume adjustment direction; according to the current volume, and The volume adjustment formula determines the volume adjustment increment.
在一個選擇性實施例中,前述第一音量調節公式為:ΔV=(100/N)*A1;前述第二音量調節公式為:ΔV=-(N/100)*A2;其中,ΔV為前述音量調整增量,前述N為當前音量。 In an optional embodiment, the foregoing first volume adjustment formula is: ΔV = (100 / N ) * A 1; the foregoing second volume adjustment formula is: ΔV =-( N / 100) * A 2; wherein, ΔV For the aforementioned volume adjustment increment, the aforementioned N is the current volume.
不同的當前音量範圍可對應設置多個第一音量調節公式及第二音量調節公式,所屬技術領域中具有通常知識者可根據實際的使用者體驗情況對不同的當前音量範圍對應的第一音量調節公式中的A1及第二音量調節公式中的A2的值進行預設。亦即,當當前音量屬於不同範圍的音 量值時,A1、A2的數值可適應性的變大或變小,以避免一次音量調整結果超出使用者的實際調整預期的問題,從而提高使用者體驗。舉例而言,當前音量為電子設備總音量的20%(如20)時,A1可取值為2,則在當前音量20的基礎上向上調整10的增量得到調整後的音量30。當前音量為電子設備總音量的20%(如20)時,A2可取值為1,則在當前音量20的基礎上向下調整5的增量得到調整後的音量15。 Different current volume ranges can be set with multiple first volume adjustment formulas and second volume adjustment formulas. Those skilled in the art can adjust the first volume corresponding to different current volume ranges according to the actual user experience. The values of A1 in the formula and A2 in the second volume adjustment formula are preset. That is, when the current volume belongs to a different range of volume values, the numerical values of A1 and A2 can be adaptively increased or decreased to avoid a problem that the volume adjustment result exceeds the user's actual adjustment expectation, thereby improving the user experience. . For example, when the current volume is 20% (for example, 20) of the total volume of the electronic device, A1 can take a value of 2, and then adjust the increment of 10 in increments based on the current volume of 20 to obtain the adjusted volume of 30. When the current volume is 20% (for example, 20) of the total volume of the electronic device, A2 can take a value of 1, and then adjust the increment of 5 downward to obtain the adjusted volume of 15 based on the current volume of 20.
藉由使用本選擇性實施方式給出的第一音量調節公式以及第二音量調節公式,不同的當前音量對應不同的音量調整增量;進一步的,藉由對第一音量調節公式以及第二音量調節公式進行適當變型,例如:前述第一音量調節公式變型為:ΔV=(INT(100/N))*A1;第二音量調節公式具體為:ΔV=-(INT(100/N))*A2,可實現根據當前音量的不同音量範圍確定不同的音量調整增量。 By using the first volume adjustment formula and the second volume adjustment formula given in this alternative embodiment, different current volumes correspond to different volume adjustment increments; further, by using the first volume adjustment formula and the second volume The adjustment formula is appropriately modified. For example, the foregoing first volume adjustment formula is: ΔV = (INT (100 / N )) * A 1; the second volume adjustment formula is specifically: ΔV =-(INT (100 / N )) * A 2, can realize different volume adjustment increments according to different volume ranges of the current volume.
舉例而言,當前音量為30時,A1可取值為3,則在當前音量30的基礎上向上調整9的增量得到調整後的音量39。當前音量為16時,A2可取值為0.5,則在當前音量16的基礎上向下調整3的增量得到調整後的音量13。 For example, when the current volume is 30, A1 can take a value of 3, and then adjust the increment of 9 upwards based on the current volume of 30 to obtain the adjusted volume of 39. When the current volume is 16, the value of A2 can be 0.5, and then the volume is adjusted downward by 3 increments based on the current volume of 16 to obtain the adjusted volume of 13.
實施例二 Example two
圖2係實施例二提供的一種音量調節的方法流程圖,如圖2所示,本實施例的方法可包含: FIG. 2 is a flowchart of a volume adjustment method provided in Embodiment 2. As shown in FIG. 2, the method in this embodiment may include:
S210、檢測外界環境音的音量值。 S210: Detect the volume value of the external environmental sound.
在本實施例中,電子設備處於工作狀態時,如果沒有獲取到使用者輸入的語音控制指令,可首先檢測外界環境音的音量值。 In this embodiment, when the electronic device is in a working state, if the voice control instruction input by the user is not obtained, the volume value of the external environmental sound may be detected first.
S220、當前述環境音的音量值小於第一預設閾值,或前述環境音的音量值大於第二預設閾值時,觸發生成前述通用音量調節指令。 S220. When the volume value of the environmental sound is less than the first preset threshold, or when the volume value of the environmental sound is greater than the second preset threshold, triggering to generate the general volume adjustment instruction.
其中,第一預設閾值可係針對較小環境音的音量值設定的閾值,例如20分貝。第二預設閾值可係針對較大環境音的音量值設定的閾值,例如60分貝。 The first preset threshold may be a threshold set for a volume value of a small ambient sound, for example, 20 dB. The second preset threshold may be a threshold set for a volume value of a larger ambient sound, for example, 60 dB.
在本實施例中,前述通用音量調節指令可為系統控制指令;如果電子設備檢測到環境音的音量值小於第一預設閾值,可相應觸發生成通用音量調節指令(系統控制指令)。例如,當電子設備檢測到環境音的音量值小於第一預設閾值時,觸發生成「將音量調大」的系統控制指令,則電子設備根據當前音量以及觸發生成的系統控制指令對當前音量進行調節。當電子設備檢測到環境音的音量值大於第二預設閾值時,觸發生成「將音量調小」的系統控制指令,則電子設備根據當前音量以及觸發生成的系統控制指令對當前音量進行調節。 In this embodiment, the aforementioned general volume adjustment instruction may be a system control instruction; if the electronic device detects that the volume value of the environmental sound is less than the first preset threshold, it may trigger the generation of the general volume adjustment instruction (system control instruction) accordingly. For example, when the electronic device detects that the volume value of the environmental sound is less than the first preset threshold, it triggers the system control instruction of "turn up the volume", and then the electronic device performs the current volume according to the current volume and the system control instruction generated by the trigger Adjustment. When the electronic device detects that the volume value of the environmental sound is greater than the second preset threshold, it triggers the generation of a system control instruction of "turn down the volume", and then the electronic device adjusts the current volume according to the current volume and the system control instruction generated by the trigger.
S230、根據前述音量調節方向以及當前音量,確定音量調整增量。 S230. Determine a volume adjustment increment according to the foregoing volume adjustment direction and the current volume.
S240、當前述當前音量根據前述音量調整增量進行調整得到的音量超過第三預設閾值時,向使用者發送音量預警提示。 S240. When the volume obtained by adjusting the current volume according to the volume adjustment increment exceeds a third preset threshold, send a volume warning prompt to the user.
其中,第三預設閾值係針對人耳對環境音舒適度匹配設計的音量值。例如,第三預設閾值可係設置的固定數值,如10分貝或80分貝,亦可為針對電子設備本身能夠提供的音量範圍設置的數值,如總音量的5%或80%。預警提示係向當前使用者提示當前音量已超人體耳朵舒適度上限或下限的標識語。例如,預警提示可係「當前音量過高,確定繼續調高音 量?」或「當前音量過低,確定繼續調低音量?」。 The third preset threshold is a volume value designed for the human ear to match the comfort of the ambient sound. For example, the third preset threshold may be a fixed value, such as 10 dB or 80 dB, or a value set for the volume range that the electronic device itself can provide, such as 5% or 80% of the total volume. The warning prompt is a logo indicating to the current user that the current volume has exceeded the upper or lower limit of human ear comfort. For example, the alert prompt may be "The current volume is too high. Are you sure to continue to increase the volume?" Or "The current volume is too low. Are you sure to continue to decrease the volume?"
S250、如果接收到前述使用者回饋的確定調節指令,則使用前述音量調整增量,對前述當前音量進行調整。 S250. If the determination adjustment instruction received by the user is received, use the foregoing volume adjustment increment to adjust the current volume.
確定調節指令係當前使用者針對預警提示輸入的調節當前語音的指令,例如,確定調節指令可係使用者藉由語音輸入的「確定」,亦可係使用者藉由觸發電子設備的觸控式螢幕或硬體按鍵輸入的確定指令。當得到確定調節指令後,電子設備可使用音量調整增量對當前音量進行調整。使用者進一步可輸入取消調節指令以取消當前調節音量的操作。例如,取消調節指令可為使用者藉由語音輸入的「取消」,亦可為使用者藉由觸發電子設備的觸控式螢幕或硬體按鍵輸入的取消指令。當得到取消調節指令後,電子設備則取消當前調節音量的操作。 The confirmation adjustment instruction is a current user's instruction for adjusting the current voice input for the alert prompt. For example, the confirmation adjustment instruction may be a "OK" input by the user through voice, or a touch-control type of the user by triggering the electronic device. OK command from screen or hardware keys. When the adjustment command is obtained, the electronic device can use the volume adjustment increment to adjust the current volume. The user can further input a cancel adjustment instruction to cancel the current volume adjustment operation. For example, the cancel adjustment command may be a “cancel” input by the user through voice, or a cancel command input by the user by triggering a touch screen or a hardware key of the electronic device. After receiving the instruction to cancel the adjustment, the electronic device cancels the current operation of adjusting the volume.
本實施例藉由檢測外界環境音的音量值獲取通用音量調節指令,以及在當前音量根據音量調整增量進行調整得到的音量超過第三預設閾值時,向當前使用者發送音量預警提示;當得到確定調節指令後,使用音量調整增量對當前音量進行調整,能夠實現在使用者沒有輸入通用音量調節指令時,設備根據環境音以及當前音量進行自動調節,且在調整的音量超過人耳舒適度時向使用者發送預警提示,以提示使用者當前的音量調節操作可能引起耳部不適,使得音量調節更加智慧化、人性化,進而提升使用者體驗。 In this embodiment, a general volume adjustment instruction is obtained by detecting the volume value of the external ambient sound, and a volume warning alert is sent to the current user when the current volume adjusted according to the volume adjustment increment exceeds a third preset threshold; when After obtaining the adjustment instruction, use the volume adjustment increment to adjust the current volume. This enables the device to automatically adjust according to the ambient sound and the current volume when the user does not enter a general volume adjustment instruction, and the adjusted volume exceeds the comfort of the human ear. Send a warning alert to the user to remind the user that the current volume adjustment operation may cause ear discomfort, making the volume adjustment more intelligent and user-friendly, thereby improving the user experience.
實施例三 Example three
圖3係實施例三提供的一種音量調節裝置的示意圖,可執行本發明任意實施例所提供的音量調節方法,具備執行方法相應的功能模組及功效, 本實施例可適用於根據當前音量調節音量的情況。 FIG. 3 is a schematic diagram of a volume adjustment device provided in the third embodiment, which can execute the volume adjustment method provided by any embodiment of the present invention, and has corresponding function modules and functions for performing the method. This embodiment is applicable to the current volume adjustment The volume situation.
前述裝置包含:指令識別模組310,設置為獲取通用音量調節指令,並根據前述通用音量調節指令識別音量調節方向;增量確定模組320,設置為根據前述音量調節方向以及當前音量,確定音量調整增量;以及音量調整模組330,設置為使用前述音量調整增量,對前述當前音量進行調整。 The foregoing device includes: an instruction recognition module 310 configured to obtain a general volume adjustment instruction and identifying a volume adjustment direction according to the general volume adjustment instruction; and an increment determination module 320 configured to determine a volume according to the foregoing volume adjustment direction and the current volume. An adjustment increment; and a volume adjustment module 330 configured to use the foregoing volume adjustment increment to adjust the current volume.
本實施例藉由獲取的通用音量調節指令識別音量調節方向;根據音量調節方向以及當前音量,確定音量調整增量並對當前音量進行調整,解決先前技術中,針對使用者的通用性的音量調整指令採用固定的調整增量調整當前音量所引起的使用者體驗不佳的問題,實現根據當前音量採用不同音量調整增量進行音量調節,使得音量調節更具針對性,有效避免一次音量調整結果超出使用者的實際調整預期的問題,從而提高使用者體驗。 In this embodiment, the general volume adjustment instruction is used to identify the volume adjustment direction. According to the volume adjustment direction and the current volume, the volume adjustment increment is determined and the current volume is adjusted, which solves the general volume adjustment for users in the prior art. The instruction uses a fixed adjustment increment to adjust the current volume caused by the poor user experience. It implements different volume adjustment increments to adjust the volume according to the current volume, making the volume adjustment more targeted and effectively avoiding a single volume adjustment result exceeding The user actually adjusts the expected problems to improve the user experience.
選擇性地,前述增量確定模組320,進一步設置為根據前述音量調節方向以及當前音量,查詢增量調整對照表,確定前述音量調整增量;其中,在前述增量調整對照表中,不同的當前音量範圍,在不同的音量調節方向下,對應不同的音量調整增量。 Optionally, the aforementioned increment determining module 320 is further configured to query the incremental adjustment comparison table according to the aforementioned volume adjustment direction and the current volume to determine the aforementioned volume adjustment increment; wherein, in the aforementioned incremental adjustment comparison table, different In the current volume range, different volume adjustment increments correspond to different volume adjustment directions.
選擇性地,前述增量確定模組320,進一步設置為獲取與前述音量調節方向匹配的音量調節公式;根據前述當前音量,以及前述音量調節公式,確定前述音量調整增量;其中,在與增大音量的音量調節方向 匹配的第一音量調節公式中,前述音量調整增量的數值大小與前述當前音量呈反比,在與減小音量的音量調節方向匹配的第二音量調節公式中,前述音量調整增量的數值大小與前述當前音量呈正比。 Optionally, the increment determining module 320 is further configured to obtain a volume adjustment formula that matches the volume adjustment direction; determine the volume adjustment increment according to the current volume and the volume adjustment formula; In the first volume adjustment formula matching the volume adjustment direction of the large volume, the numerical value of the volume adjustment increment is inversely proportional to the current volume, and in the second volume adjustment formula matching the volume adjustment direction of the reduced volume, the aforementioned volume The value of the adjustment increment is proportional to the aforementioned current volume.
選擇性地,前述第一音量調節公式具體為:ΔV=(100/N)*A1;前述第二音量調節公式具體為:ΔV=-(N/100)*A2;其中,ΔV為前述音量調整增量,前述N為當前音量,A1、A2為預設常數。 Optionally, the foregoing first volume adjustment formula is specifically: ΔV = (100 / N ) * A 1; the foregoing second volume adjustment formula is specifically: ΔV =-( N / 100) * A 2; wherein ΔV is the foregoing Volume adjustment increment. The aforementioned N is the current volume, and A1 and A2 are preset constants.
選擇性地,前述通用音量調節指令為使用者輸入的語音控制指令。 Optionally, the aforementioned general volume adjustment instruction is a voice control instruction input by a user.
選擇性地,前述通用音量調節指令為系統控制指令;前述裝置進一步包含:音量檢測模組340,設置為檢測外界環境音的音量值;當前述環境音的音量值小於第一預設閾值,或前述環境音的音量值大於第二預設閾值時,觸發生成前述通用音量調節指令。 Optionally, the general volume adjustment instruction is a system control instruction; the device further includes: a volume detection module 340 configured to detect a volume value of the external environmental sound; when the volume value of the environmental sound is less than a first preset threshold, or When the volume value of the environmental sound is greater than the second preset threshold, the general volume adjustment instruction is triggered to be generated.
選擇性地,前述裝置進一步包含,預警提示模組350,設置為當前述當前音量根據前述音量調整增量進行調整得到的音量超過第三預設閾值時,向使用者發送音量預警提示;如果接收到前述使用者回饋的確定調節指令,則使用前述音量調整增量,對前述當前音量進行調整。 Optionally, the aforementioned device further includes an alert prompt module 350 configured to send a volume alert prompt to the user when the volume obtained by adjusting the current volume according to the aforementioned volume adjustment increment exceeds a third preset threshold; if receiving Upon the determination adjustment instruction returned by the user, the volume adjustment increment is used to adjust the current volume.
上述音量調節裝置可執行本發明任意實施例所提供的音量調節方法,具備執行方法相應的功能模組及功效。未在本實施例中詳盡描述的技術細節,可參見本發明任意實施例提供的音量調節方法。 The above-mentioned volume adjustment device can execute the volume adjustment method provided by any embodiment of the present invention, and has corresponding function modules and functions for executing the method. For technical details not described in detail in this embodiment, reference may be made to a volume adjustment method provided in any embodiment of the present invention.
實施例四 Embodiment 4
圖4為實施例四提供的一種電子設備的結構示意圖。圖4示出適於用來實現本實施方式的電子設備412的框圖。圖4顯示的電子設備412僅為 一個示例,不應對本實施例的功能及使用範圍帶來任何限制。 FIG. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment. FIG. 4 shows a block diagram of an electronic device 412 suitable for implementing the present embodiment. The electronic device 412 shown in FIG. 4 is only an example, and should not impose any limitation on the function and scope of use of this embodiment.
如圖4所示,電子設備412以通用電腦設備的形式表現。電子設備412的元件可包含但不限於:一個或多個處理器416,存儲裝置428,連接不同系統元件(包含存儲裝置428及處理器416)的匯流排418。 As shown in FIG. 4, the electronic device 412 is expressed in the form of a general-purpose computer device. The components of the electronic device 412 may include, but are not limited to, one or more processors 416, a storage device 428, and a bus 418 connected to different system components (including the storage device 428 and the processor 416).
匯流排418表示幾類匯流排結構中的一種或多種,包含記憶體匯流排或記憶體控制器,週邊匯流排,圖形加速埠,處理器或使用多種匯流排結構中的任意匯流排結構的區域匯流排。舉例來說,此等體系結構包含但不限於工業標準架構(Industry Standard Architecture,ISA)匯流排,微通道架構(Micro Channel Architecture,MCA)匯流排,增強型ISA匯流排、影片電子標準協會(Video Electronics Standards Association,VESA)區域匯流排以及周邊組件互連(Peripheral Component Interconnect,PCI)匯流排。 The bus 418 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or an area using any of a variety of bus structures. Bus. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MCA) bus, the enhanced ISA bus, and the Video Electronics Standards Association (Video) Electronics Standards Association (VESA) regional bus and Peripheral Component Interconnect (PCI) bus.
電子設備412示例性地包含多種電腦系統可讀介質。此等介質可為任何能夠被電子設備412連接的可用介質,包含揮發性及非揮發性介質,可移動的及不可移動的介質。 The electronic device 412 illustratively includes a variety of computer system readable media. These media can be any available media that can be connected by the electronic device 412, including volatile and non-volatile media, removable and non-removable media.
存儲裝置428可包含揮發性記憶體形式的電腦系統可讀介質,例如隨機存取記憶體(Random Access Memory,RAM)430及/或高速緩衝記憶體432。電子設備412進一步可包含其它可移動/不可移動的、揮發性/非揮發性電腦系統存儲介質。僅作為舉例,存儲系統434可用於讀寫不可移動的、非揮發性磁介質(圖4未顯示,通常稱為「硬磁碟驅動器」)。儘管圖4中未示出,可提供用於對可移動非揮發性磁碟(例如「軟磁碟」)讀寫的磁碟機,以及對可移動非揮發性光碟(例如光碟-唯讀光碟(Compact Disc-Read Only Memory,CD-ROM)、數位視訊光碟-唯讀記憶體(Digital Video Disc-Read Only Memory,DVD-ROM)或其它光介質)讀寫的光碟驅動器。在此等情況下,每個驅動器可藉由一個或多個數據介質接口與匯流排418相連。存儲裝置428可包含至少一個程式產品,該程式產品具有一組(例如至少一個)程式模組,此等程式模組被配置以執行各實施例的功能。 The storage device 428 may include a computer system-readable medium in the form of volatile memory, such as a Random Access Memory (RAM) 430 and / or a cache memory 432. The electronic device 412 may further include other removable / non-removable, volatile / non-volatile computer system storage media. For example only, the storage system 434 can be used to read and write non-removable, non-volatile magnetic media (not shown in FIG. 4 and is commonly referred to as a "hard disk drive"). Although not shown in FIG. 4, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and a removable non-volatile disk (e.g., a disc-read-only disc ( Compact Disc-Read Only Memory (CD-ROM), Digital Video Disc-Read Only Memory (DVD-ROM) or other optical media. In these cases, each drive may be connected to the bus 418 through one or more data medium interfaces. The storage device 428 may include at least one program product, the program product having a set (for example, at least one) of program modules configured to perform the functions of the embodiments.
具有一組(至少一個)程式模組426的程式436,可存儲在例如存儲裝置428中,如此的程式模組426包含作業系統、一個或多個應用程式、其它程式模組以及程式數據,此等示例中的每一個或某種組合中可能包含網路環境的實現。程式模組426通常執行本發明所描述的實施例中的功能及/或方法。 A program 436 having a set (at least one) of program modules 426 may be stored in, for example, the storage device 428. Such a program module 426 includes an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of the network environment. The program module 426 generally performs functions and / or methods in the embodiments described in the present invention.
電子設備412亦可與一個或多個外部設備414(例如鍵盤、感測設備、攝影機、顯示器424等)通訊,進一步可與一個或多個使得使用者能與該電子設備412交互的設備通訊,及/或與使得該電子設備412能與一個或多個其它電腦設備進行通訊的任何設備(例如網卡,數據機等等)通訊。此通訊可藉由輸入/輸出(I/O)接口422進行。此外,電子設備412亦可藉由網路介面卡420與一個或多個網路(例如區域網路(Local Area Network,LAN),廣域網路Wide Area Network,WAN)及/或公共網路,例如網際網路)通訊。如圖所示,網路介面卡420藉由匯流排418與電子設備412的其它模組通訊。應當明白,儘管圖中未示出,可結合電子設備412使用其它硬體及/或軟體模組,包含但不限於:微代碼、裝置驅動程式、冗餘處理單元、外部磁碟驅動陣列、獨立磁碟冗餘陣列(Redundant Arrays of Independent Disks,RAID)系統、磁帶驅動器以及數據備份存儲系統等。 The electronic device 412 can also communicate with one or more external devices 414 (such as a keyboard, sensing device, camera, display 424, etc.), and can further communicate with one or more devices that enable users to interact with the electronic device 412. And / or communicate with any device (such as a network card, modem, etc.) that enables the electronic device 412 to communicate with one or more other computer devices. This communication can be performed through an input / output (I / O) interface 422. In addition, the electronic device 412 may also be connected to one or more networks (such as a local area network (LAN), a wide area network (Wide Area Network), and / or a public network through the network interface card 420), such as Internet) communication. As shown, the network interface card 420 communicates with other modules of the electronic device 412 through the bus 418. It should be understood that although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, independent Redundant Arrays of Independent Disks (RAID) systems, tape drives, and data backup storage systems.
處理器416藉由運行存儲在存儲裝置428中的程式,從而執 行各種功能應用以及數據處理,例如實現上述實施例所提供的音量調節方法。 The processor 416 executes various functional applications and data processing by running programs stored in the storage device 428, such as implementing the volume adjustment method provided in the above embodiment.
亦即:藉由獲取的通用音量調節指令識別音量調節方向;根據音量調節方向以及當前音量,確定音量調整增量並對當前音量進行調整,解決先前技術中,針對使用者的通用性的音量調整指令採用固定的調整增量調整當前音量所引起的使用者體驗不佳的問題,實現根據當前音量採用不同音量調整增量進行音量調節,使得音量調節更具針對性,有效避免一次音量調整結果超出使用者的實際調整預期的問題,從而提高使用者體驗。 That is, the volume adjustment direction is identified by the acquired general volume adjustment instruction; the volume adjustment increment is determined according to the volume adjustment direction and the current volume, and the current volume is adjusted to solve the general volume adjustment for users in the prior art The instruction uses a fixed adjustment increment to adjust the current volume caused by the poor user experience. It implements different volume adjustment increments to adjust the volume according to the current volume, making the volume adjustment more targeted and effectively avoiding a single volume adjustment result exceeding The user actually adjusts the expected problems to improve the user experience.
實施例五 Example 5
本實施例五進一步提供一種存儲電腦程式的電腦存儲介質,前述電腦程式在由電腦處理器執行時用於執行上述實施例任一前述的音量調節方法。 The fifth embodiment further provides a computer storage medium storing a computer program. When the computer program is executed by a computer processor, the computer program is used to execute any of the foregoing volume adjustment methods in the embodiment.
亦即:藉由獲取的通用音量調節指令識別音量調節方向;根據音量調節方向以及當前音量,確定音量調整增量並對當前音量進行調整,解決先前技術中,針對使用者的通用性的音量調整指令採用固定的調整增量調整當前音量所引起的使用者體驗不佳的問題,實現根據當前音量採用不同音量調整增量進行音量調節,使得音量調節更具針對性,有效避免一次音量調整結果超出使用者的實際調整預期的問題,從而提高使用者體驗。 That is, the volume adjustment direction is identified by the acquired general volume adjustment instruction; the volume adjustment increment is determined according to the volume adjustment direction and the current volume, and the current volume is adjusted to solve the general volume adjustment for users in the prior art The instruction uses a fixed adjustment increment to adjust the current volume caused by the poor user experience. It implements different volume adjustment increments to adjust the volume according to the current volume, making the volume adjustment more targeted and effectively avoiding a single volume adjustment result exceeding The user actually adjusts the expected problems to improve the user experience.
本實施例的電腦存儲介質,可採用一個或多個電腦可讀的介質的任意組合。電腦可讀介質可為電腦可讀訊號介質或電腦可讀存儲介質。 電腦可讀存儲介質例如可為但不限於電、磁、光、電磁、紅外線、或半導體的系統、裝置或設備,或任意以上的組合。電腦可讀存儲介質的更具體的例子(非窮舉的列表)包含:具有一個或多個導線的電連接、可攜式電腦磁碟、硬碟、隨機存取記憶體(RAM)、唯讀記憶體(Read Only Memory,ROM)、可抹除可程式化唯讀記憶體((Erasable Programmable Read Only Memory,EPROM)、快閃記憶體、光纖、可攜式光碟唯讀記憶體(CD-ROM)、光存儲裝置、磁存儲裝置、或上述的任意合適的組合。在本說明書中,電腦可讀存儲介質可為任何包含或存儲程式的有形介質,該程式可被指令執行系統、裝置或設備使用或與其結合使用。 The computer storage medium of this embodiment may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer diskettes, hard disk drives, random access memory (RAM), read-only Memory (Read Only Memory, ROM), Erasable Programmable Read Only Memory (EPROM), Flash Memory, Optical Fiber, CD-ROM ), Optical storage device, magnetic storage device, or any suitable combination of the foregoing. In this specification, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be instructed to execute a system, device, or device Use or in conjunction with it.
電腦可讀的訊號介質可包含在基頻帶中或作為載波一部分傳播的數據訊號,其中承載電腦可讀的程式碼。此傳播的數據訊號可採用多種形式,包含但不限於電磁訊號、光訊號或上述的任意合適的組合。電腦可讀的訊號介質進一步可為電腦可讀存儲介質以外的任何電腦可讀介質,該電腦可讀介質可發送、傳播或傳輸用於由指令執行系統、裝置、設備使用或與其結合使用的程式。 The computer-readable signal medium may include a data signal transmitted in a base band or transmitted as part of a carrier wave, which carries computer-readable code. The transmitted data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may further be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may transmit, propagate, or transmit a program for use by or in connection with an instruction execution system, device, or device. .
電腦可讀介質上包含的程式碼可用任何適當的介質傳輸,包含但不限於無線、電線、光纜、射頻(Radio Frequency,RF)等等,或上述的任意合適的組合。 The code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
可以一種或多種程式設計語言或其組合來編寫用於執行本發明操作的電腦程式代碼,前述程式設計語言包含面向對象的程式設計語言-諸如Java、Smalltalk、C++,進一步包含常規的程序式程式設計語言,諸如「C」語言或類似的程式設計語言。程式碼可完全地在使用者電腦上執 行、部分地在使用者電腦上執行、作為一個獨立的套裝軟體執行、部分在使用者電腦上部分在遠端電腦上執行、或完全在遠端電腦或伺服器上執行。在關於遠端電腦的情形中,遠端電腦可藉由任意種類的網路,包含區域網路(LAN)或廣域網路(WAN)-連接到使用者電腦,抑或,可連接到外部電腦(例如利用網際網路服務提供商來通過網際網路連接)。 The computer program code for performing the operations of the present invention may be written in one or more programming languages or combinations thereof. The aforementioned programming languages include object-oriented programming languages such as Java, Smalltalk, C ++, and further include conventional programmatic programming. Language, such as "C" or similar programming language. The code can run entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer, partly on a remote computer, or entirely on the remote computer or On the server. In the case of a remote computer, the remote computer can be connected to the user's computer via any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as Use an Internet service provider to connect through the Internet).
本發明提供的音量調節方法,解決先前技術中針對使用者的通用性的音量調整指令採用固定的調整增量調整當前音量所引起的使用者體驗不佳的問題,實現根據當前音量採用不同音量調整增量進行音量調節,使得音量調節更具針對性,有效避免一次音量調整結果超出使用者的實際調整預期的問題,從而提高使用者體驗。 The volume adjustment method provided by the present invention solves the problem of poor user experience caused by using a fixed adjustment increment to adjust the current volume for a universal volume adjustment instruction of a user in the prior art, and implementing different volume adjustments according to the current volume Incremental volume adjustment makes the volume adjustment more targeted, effectively avoiding the problem that the volume adjustment result exceeds the user's actual adjustment expectation, thereby improving the user experience.
Claims (10)
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
??201810327145.0 | 2018-04-12 | ||
CN201810327145.0 | 2018-04-12 | ||
CN201810327145.0A CN108509177A (en) | 2018-04-12 | 2018-04-12 | A kind of volume adjusting method, device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201944251A true TW201944251A (en) | 2019-11-16 |
TWI790236B TWI790236B (en) | 2023-01-21 |
Family
ID=63381963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW107117810A TWI790236B (en) | 2018-04-12 | 2018-05-24 | Volume adjustment method, device, electronic device and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108509177A (en) |
TW (1) | TWI790236B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI749569B (en) * | 2020-05-26 | 2021-12-11 | 新加坡商鴻運科股份有限公司 | Method, portable device for adjusting sound playback |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134361B (en) * | 2019-05-06 | 2022-08-19 | 上海幻电信息科技有限公司 | Volume adjusting method of device, computer device and computer-readable storage medium |
CN110459215B (en) * | 2019-08-12 | 2024-05-14 | 腾讯科技(深圳)有限公司 | Voice control method, device, computer equipment and computer readable storage medium |
CN111654783B (en) * | 2020-06-10 | 2021-11-16 | 珠海格力电器股份有限公司 | Method and device for adjusting volume of loudspeaker of kitchen electrical equipment and range hood |
CN114185510B (en) * | 2021-11-02 | 2023-10-20 | 深圳市冠旭电子股份有限公司 | Sound box volume adjusting method and system, sound equipment and storage medium |
CN114153418A (en) * | 2021-11-04 | 2022-03-08 | 北京小米移动软件有限公司 | Volume adjusting method and device, electronic equipment and storage medium |
CN115291781B (en) * | 2022-07-01 | 2023-05-26 | 厦门立林科技有限公司 | Parameter adjusting method, device and system of equipment |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0210906A (en) * | 1988-06-28 | 1990-01-16 | Nec Corp | Sound volume adjusting device |
JPH03289743A (en) * | 1990-04-05 | 1991-12-19 | Nec Shizuoka Ltd | Telephone set |
TW200506709A (en) * | 2003-08-08 | 2005-02-16 | Mitac Technology Corp | Fast voice control device for computer device and method thereof |
US8793136B2 (en) * | 2012-02-17 | 2014-07-29 | Lg Electronics Inc. | Method and apparatus for smart voice recognition |
TWI557599B (en) * | 2015-11-05 | 2016-11-11 | 宏碁股份有限公司 | Voice control method and voice control system |
CN106250474B (en) * | 2016-07-29 | 2020-06-23 | Tcl科技集团股份有限公司 | Voice control processing method and system |
CN106406569A (en) * | 2016-09-05 | 2017-02-15 | 乐视控股(北京)有限公司 | Audiovisual effect adjustment method and apparatus for terminal device |
CN106453789B (en) * | 2016-09-18 | 2020-06-30 | 珠海格力电器股份有限公司 | Alarm clock volume adjusting method and device and intelligent terminal |
CN107135316B (en) * | 2017-06-30 | 2019-12-10 | Oppo广东移动通信有限公司 | method and device for adjusting call volume, storage medium and terminal |
CN107613146B (en) * | 2017-11-10 | 2020-07-28 | 维沃移动通信有限公司 | Volume adjustment method and device and mobile terminal |
CN107888782A (en) * | 2017-12-25 | 2018-04-06 | 出门问问信息科技有限公司 | A kind of control method and device of volume |
-
2018
- 2018-04-12 CN CN201810327145.0A patent/CN108509177A/en active Pending
- 2018-05-24 TW TW107117810A patent/TWI790236B/en active
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI749569B (en) * | 2020-05-26 | 2021-12-11 | 新加坡商鴻運科股份有限公司 | Method, portable device for adjusting sound playback |
US11354086B2 (en) | 2020-05-26 | 2022-06-07 | Nanning Fulian Fugui Precision Industrial Co., Ltd. | Method for adjusting sound playback and portable device thereof |
US11579840B2 (en) | 2020-05-26 | 2023-02-14 | Nanning Fulian Fugui Precision Industrial Co., Ltd. | Method for adjusting sound playback and portable device thereof |
Also Published As
Publication number | Publication date |
---|---|
TWI790236B (en) | 2023-01-21 |
CN108509177A (en) | 2018-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI790236B (en) | Volume adjustment method, device, electronic device and storage medium | |
US11664027B2 (en) | Method of providing voice command and electronic device supporting the same | |
US11251763B2 (en) | Audio signal adjustment method, storage medium, and terminal | |
EP3127116B1 (en) | Attention-based dynamic audio level adjustment | |
US9515627B2 (en) | Devices and methods for audio volume adjustment | |
TWI607373B (en) | Collaborative audio processing | |
WO2019033987A1 (en) | Prompting method and apparatus, storage medium, and terminal | |
KR20150012577A (en) | Apparatus Method for controlling voice input in electronic device supporting voice recognition function | |
CN107277268B (en) | Audio playing method and mobile terminal | |
KR20160001964A (en) | Operating Method For Microphones and Electronic Device supporting the same | |
CN106791067B (en) | Call volume adjusting method and device and mobile terminal | |
CN103618514A (en) | Volume adjustment method, device and electronic equipment | |
CN109756818B (en) | Dual-microphone noise reduction method and device, storage medium and electronic equipment | |
WO2022227793A1 (en) | Loudspeaker parameter configuration method and related apparatus | |
WO2017032012A1 (en) | Volume adjusting method and user terminal | |
CN112468924A (en) | Earphone noise reduction method and device | |
WO2021098698A1 (en) | Audio playback method and terminal device | |
CN105824424A (en) | Music control method and terminal | |
KR20160138726A (en) | Electronic device and method for controlling volume thereof | |
WO2017032031A1 (en) | Volume adjustment method and user terminal | |
CN107040638B (en) | A kind of processing method and mobile terminal of noise | |
WO2019113529A1 (en) | Keyword confirmation method and apparatus | |
CN104572007A (en) | Method for adjusting sound volume of terminal | |
WO2019061292A1 (en) | Noise reduction method for terminal and terminal | |
KR102556815B1 (en) | Electronic device and Method for controlling the electronic device thereof |