When an officer stops you, you are required by law to provide your driver's license, proof of insurance, and registration... That's it. You are not obligated to answer any other questions, and doing so is considered voluntary. Miranda does not apply unless you are in custody. When you are still sitting in your car you are not in custody. You are in fact detained, but only for the sole purpose of the officer to write a citation... not so that he can fish more information out of you. In your question, the officer is asking about speeding (the reason for the stop) which he is entitled to do without Miranda (I think it falls under Terry V Ohio), but you are not obligated to answer. If the officer witnessed a violation, he may write you a citation for it. If he needs to fish more information out of you, then it was probably a bad stop to begin with.