An electronic device comprising: a memory storing one or more instructions; and a processor configured to execute the one or more instructions stored in the memory to: analyze a meaning of a speech section in audio data included in a content being played on the electronic device, determine whether a predetermined keyword is included in the speech section; based on an analysis result of the speech section, identify, from among a plurality of image frames included in the content, an image candidate section for generating a highlight image, characterized in that the processor is further configured to: adjust a time distance d for identifying the image candidate section according to a weight of the predetermined keyword in the speech section, wherein when the predetermined keyword has a high weight the time distance d for identifying the image candidate section is adjusted to be high, and when the predetermined keyword has a low weight, the time distance d for identifying the image candidate section is adjusted to be lower, and wherein when the predetermined keyword is included in the speech section at a time t1 then an image frame between a time t1-d before the time distance d from the time t1 and a time t1+d after the time distance d from the time t1 is identified as the image candidate section for generating the highlight image; analyze an object included in an image frame corresponding to the image candidate section, and identify a target section for generating the highlight image based on an analysis result of the image candidate section. a memory storing one or more instructions; and a processor configured to execute the one or more instructions stored in the memory to: analyze a meaning of a speech section in audio data included in a content being played on the electronic device, determine whether a predetermined keyword is included in the speech section; based on an analysis result of the speech section, identify, from among a plurality of image frames included in the content, an image candidate section for generating a highlight image, characterized in that the processor is further configured to: adjust a time distance d for identifying the image candidate section according to a weight of the predetermined keyword in the speech section, wherein when the predetermined keyword has a high weight the time distance d for identifying the image candidate section is adjusted to be high, and when the predetermined keyword has a low weight, the time distance d for identifying the image candidate section is adjusted to be lower, and wherein when the predetermined keyword is included in the speech section at a time t1 then an image frame between a time t1-d before the time distance d from the time t1 and a time t1+d after the time distance d from the time t1 is identified as the image candidate section for generating the highlight image; analyze an object included in an image frame corresponding to the image candidate section, and identify a target section for generating the highlight image based on an analysis result of the image candidate section. analyze a meaning of a speech section in audio data included in a content being played on the electronic device, determine whether a predetermined keyword is included in the speech section; based on an analysis result of the speech section, identify, from among a plurality of image frames included in the content, an image candidate section for generating a highlight image, characterized in that the processor is further configured to: adjust a time distance d for identifying the image candidate section according to a weight of the predetermined keyword in the speech section, wherein when the predetermined keyword has a high weight the time distance d for identifying the image candidate section is adjusted to be high, and when the predetermined keyword has a low weight, the time distance d for identifying the image candidate section is adjusted to be lower, and wherein when the predetermined keyword is included in the speech section at a time t1 then an image frame between a time t1-d before the time distance d from the time t1 and a time t1+d after the time distance d from the time t1 is identified as the image candidate section for generating the highlight image; analyze an object included in an image frame corresponding to the image candidate section, and identify a target section for generating the highlight image based on an analysis result of the image candidate section. adjust a time distance d for identifying the image candidate section according to a weight of the predetermined keyword in the speech section, wherein when the predetermined keyword has a high weight the time distance d for identifying the image candidate section is adjusted to be high, and when the predetermined keyword has a low weight, the time distance d for identifying the image candidate section is adjusted to be lower, and wherein when the predetermined keyword is included in the speech section at a time t1 then an image frame between a time t1-d before the time distance d from the time t1 and a time t1+d after the time distance d from the time t1 is identified as the image candidate section for generating the highlight image; analyze an object included in an image frame corresponding to the image candidate section, and identify a target section for generating the highlight image based on an analysis result of the image candidate section.