。
She was suddenly struck by a wonderful inspiration.
Literal
She [topic-は] suddenly wonderful inspiration [object-を] obtained.
霊感 ('inspiration') is a slightly literary noun, originally with religious connotations of receiving spiritual insight (霊 'spirit' + 感 'feeling'). The verb 得る ('obtain, receive') gives it a sense of inspiration arriving from outside oneself — being granted, not generated.