A speaker, comprising an enclosure with accommodating space and a sound production unit fastened in the accommodating space, wherein the enclosure comprises a first inner bottom wall and an inner sidewall fastened to the first inner bottom wall, the sound production unit has a diaphragm that is configured to vibrate to produce a sound, the diaphragm is fastened to the inner sidewall to divide the accommodating space into a front cavity and a rear cavity, the first inner bottom wall is located in the front cavity, a sound outlet hole penetrates through the inner sidewall, the front cavity is in communication with the sound outlet hole to form a front cavity channel, the diaphragm is tilted relative to the first inner bottom wall, and a cross-sectional area of an end of the front cavity that is in communication with the sound outlet hole is greater than a cross-sectional area of an end of the front cavity that is away from the sound outlet hole; wherein the diaphragm comprises a ring protruding toward the front cavity, the sound outlet hole is bounded by a first hole wall and a second hole wall that are disposed opposite to each other, the second hole wall is fastened to the first inner bottom wall, the first inner bottom wall is located on one side of an extension line of the first hole wall, the ring is located on the other side of the extension line that is away from the first inner bottom wall, wherein the extension line of the first hole wall is a line in a plane of the first hole wall and extending from the end of the front cavity that is in communication with the sound outlet hole to the end of the front cavity that is away from the sound outlet hole; wherein a first installation console is disposed on the inner sidewall, and the first installation console is fastened to the sound production unit; wherein the first installation console comprises two first installation parts and two first pad parts, wherein each first installation part is fastened between the two first pad parts, one of the first installation parts is disposed opposite to the sound outlet hole, and the sound outlet hole is located between the other installation part and the first inner bottom wall, wherein the first installation parts are fastened to the diaphragm, the first pad parts extend in a direction in which the sound outlet hole is located, and a height of a top surface of the first pad part that is away from the first inner bottom wall relative to the first inner bottom wall gradually increases from an end of the first pad part that is away from the sound outlet hole to an end of the first pad part that is adjacent to the sound outlet hole; wherein a stopper console is further disposed on the inner sidewall, a height of the first installation console relative to the first inner bottom wall is less than a height of the stopper console relative to the first inner bottom wall, and the stopper console is disposed around and fastened to the sound production unit, wherein the stopper console and the first installation console are disposed in a form of steps. wherein the diaphragm comprises a ring protruding toward the front cavity, the sound outlet hole is bounded by a first hole wall and a second hole wall that are disposed opposite to each other, the second hole wall is fastened to the first inner bottom wall, the first inner bottom wall is located on one side of an extension line of the first hole wall, the ring is located on the other side of the extension line that is away from the first inner bottom wall, wherein the extension line of the first hole wall is a line in a plane of the first hole wall and extending from the end of the front cavity that is in communication with the sound outlet hole to the end of the front cavity that is away from the sound outlet hole; wherein a first installation console is disposed on the inner sidewall, and the first installation console is fastened to the sound production unit; wherein the first installation console comprises two first installation parts and two first pad parts, wherein each first installation part is fastened between the two first pad parts, one of the first installation parts is disposed opposite to the sound outlet hole, and the sound outlet hole is located between the other installation part and the first inner bottom wall, wherein the first installation parts are fastened to the diaphragm, the first pad parts extend in a direction in which the sound outlet hole is located, and a height of a top surface of the first pad part that is away from the first inner bottom wall relative to the first inner bottom wall gradually increases from an end of the first pad part that is away from the sound outlet hole to an end of the first pad part that is adjacent to the sound outlet hole; wherein a stopper console is further disposed on the inner sidewall, a height of the first installation console relative to the first inner bottom wall is less than a height of the stopper console relative to the first inner bottom wall, and the stopper console is disposed around and fastened to the sound production unit, wherein the stopper console and the first installation console are disposed in a form of steps.