in Obama's speech...Yet, every so often the oath is taken amidst gathering clouds and raging storms...Is this an example of imagery...i feel this is appealing to sight...in analysing...the oath is taken place among a crisis in america...economical crisis and well as war

Yes, you're right. Those are metaphors: "gathering clouds" and "raging storms."

... and yes, metaphors are one type of literary device that produce imagery.

Yes, the phrase "Yet, every so often the oath is taken amidst gathering clouds and raging storms" in Obama's speech can be considered an example of imagery. Imagery refers to the use of descriptive language that appeals to the senses, including sight, sound, taste, touch, and smell.

In this case, the phrase "gathering clouds and raging storms" is appealing to the sense of sight. It creates a vivid mental picture of a tumultuous and challenging environment. The imagery suggests that the oath is taken during times of difficulty and uncertainty, symbolized by the stormy metaphor. By using this imagery, Obama is emphasizing that the oath is not always taken during peaceful and prosperous times, but rather during moments of crisis, such as economic downturns and wars.

When analyzing a piece of text, it is important to consider the broader context and the intended effect of the language used. In this case, the imagery is employed to convey a deeper meaning and evoke an emotional response in the audience, highlighting the challenges faced by the nation during those times.