In phonetics (a branch of linguistics), a phone is any distinct speech sound or gesture, regardless of whether the exact sound is critical to the meanings of words.
In contrast, a phoneme is a speech sound in a given language that, if swapped with another phoneme, could change one word to another. Phones are absolute and are not specific to any language, but phonemes can be discussed only in reference to specific languages.
For example, the English words kid and kit end with two distinct phonemes, pronounced as //d// and pronounced as //t//, and swapping one for the other would change one word into a different word. However, the difference between the pronounced as //p// sounds in pun (pronounced as /[pʰ]/, with aspiration) and spun (pronounced as /[p]/, without aspiration) never affects the meaning or identity of a word in English. Therefore, pronounced as /[p]/ cannot be replaced with pronounced as /[pʰ]/ (or vice versa) and thereby convert one word into another. This causes pronounced as /[pʰ]/ and pronounced as /[p]/ to be two distinct phones but not distinct phonemes in English.
In contrast to English, swapping the same two sounds in Hindustani changes one word into another: pronounced as /[pʰal]/ (Hindi: फल/Urdu: پھل) means 'fruit', and pronounced as /[pal]/ (Hindi: पल/Urdu: پل) means 'moment'. The sounds pronounced as /[pʰ]/ and pronounced as /[p]/ are thus different phonemes in Hindustani but are not distinct phonemes in English.
As seen in the examples, phonemes, rather than phones, are usually the features of speech that are mapped onto the characters of an orthography.
In the context of spoken languages, a phone is an unanalyzed sound of a language. A phone is a speech segment that possesses distinct physical or perceptual properties and serves as the basic unit of phonetic speech analysis. Phones are generally either vowels or consonants.
A phonetic transcription (based on phones) is enclosed within square brackets (pronounced as /[ ]/), rather than the slashes (pronounced as // //) of a phonemic transcription, (based on phonemes). Phones (and often also phonemes) are commonly represented by using symbols of the International Phonetic Alphabet (IPA).
For example, the English word spin consists of four phones, pronounced as /[s]/, pronounced as /[p]/, pronounced as /[ɪ]/ and pronounced as /[n]/ and so the word has the phonetic representation pronounced as /[spɪn]/. The word pin has three phones. Since its initial sound is aspirated, it can be represented as pronounced as /[pʰ]/, and the word's phonetic representation would then be pronounced as /[pʰɪn]/. (The precise features shown in a phonetic representation depend on whether a narrow or broad transcription is used and which features the writer wishes to draw attention to in a particular context.)
When phones are considered to be realizations of the same phoneme, they are called allophones of that phoneme (more information on the methods of making such assignments can be found under phoneme). In English, for example, pronounced as /[p]/ and pronounced as /[pʰ]/ are considered allophones of a single phoneme, which is written pronounced as //p//. The phonemic transcriptions of those two words is thus pronounced as //spɪn// and pronounced as //pɪn//, and aspiration is then no longer shown since it is not distinctive.
Whether a direct mapping between phonemes and characters is achieved depends on the type of orthography used. Phonological orthographies like the Indonesian orthography tend to have one-to-one mappings of phonemes to characters, whereas alphabetic orthographies like the English orthography tend to try to have direct mappings, but often end up mapping one phoneme to multiple characters.
In the examples above the characters enclosed in square brackets: "pʰ" and "p" are IPA representations of phones. The IPA unlike English and Indonesian is not a practical orthography and is used by linguists to obtain phonetic transcriptions of words in spoken languages and is therefore a strongly phonetically spelled system by design.