when you do something on spec, you are trying to achieve something without organizing it in advance, but hoping you will be lucky A lot of young people apply for jobs on spec (= not in reply to an advertisement, but hoping that a job might be available).
Check pronunciation: spec